|
@@ -243,13 +243,18 @@ public class ArticleServiceImpl implements ArticleService {
|
|
|
if (workDynamicList.contains(chnlid)) {
|
|
|
Map<String, Object> monthItem = Convert.toMap(String.class, Object.class, monthMap.get(chnlid));
|
|
|
Map<String, Object> yearItem = Convert.toMap(String.class, Object.class, yearMap.get(chnlid));
|
|
|
- if (Blank.isEmpty(monthItem) || Blank.isEmpty(yearItem)) {
|
|
|
- continue;
|
|
|
+
|
|
|
+ // 月份更新不为空
|
|
|
+ if (Blank.isNotEmpty(monthItem)) {
|
|
|
+ map.put("workDynamicMonthCount", Blank.isEmpty(monthItem) ? "" : Convert.toInt(monthItem.get("count"), 0));
|
|
|
+ map.put("workDynamicUpdateDate", DateUtil.parse(monthItem.get("date").toString()).toString("yyyy-MM-dd"));
|
|
|
}
|
|
|
|
|
|
- map.put("workDynamicMonthCount", Blank.isEmpty(monthItem) ? "" : Convert.toInt(monthItem.get("count"), 0));
|
|
|
- map.put("workDynamicUpdateDate", DateUtil.parse(yearItem.get("date").toString()).toString("yyyy-MM-dd"));
|
|
|
- map.put("workDynamicYearCount", Convert.toInt(yearItem.get("count"), 0));
|
|
|
+ // 年份更新不为空
|
|
|
+ if (Blank.isNotEmpty(yearItem)) {
|
|
|
+ map.put("workDynamicUpdateDate", DateUtil.parse(yearItem.get("date").toString()).toString("yyyy-MM-dd"));
|
|
|
+ map.put("workDynamicYearCount", Convert.toInt(yearItem.get("count"), 0));
|
|
|
+ }
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -257,13 +262,18 @@ public class ArticleServiceImpl implements ArticleService {
|
|
|
if (policyDocList.contains(chnlid)) {
|
|
|
Map<String, Object> monthItem = Convert.toMap(String.class, Object.class, monthMap.get(chnlid));
|
|
|
Map<String, Object> yearItem = Convert.toMap(String.class, Object.class, yearMap.get(chnlid));
|
|
|
- if (Blank.isEmpty(monthItem) && Blank.isEmpty(yearItem)) {
|
|
|
- continue;
|
|
|
+
|
|
|
+ // 月份更新不为空
|
|
|
+ if (Blank.isNotEmpty(monthItem)) {
|
|
|
+ map.put("policyDocMonthCount", Blank.isEmpty(monthItem) ? "" : Convert.toInt(monthItem.get("count"), 0));
|
|
|
+ map.put("policyDocUpdateDate", DateUtil.parse(monthItem.get("date").toString()).toString("yyyy-MM-dd"));
|
|
|
}
|
|
|
|
|
|
- map.put("policyDocMonthCount", Blank.isEmpty(monthItem) ? "" : Convert.toInt(monthItem.get("count"), 0));
|
|
|
- map.put("policyDocUpdateDate", DateUtil.parse(yearItem.get("date").toString()).toString("yyyy-MM-dd"));
|
|
|
- map.put("policyDocYearCount", Convert.toInt(yearItem.get("count"), 0));
|
|
|
+ // 年份更新不为空
|
|
|
+ if (Blank.isNotEmpty(yearItem)) {
|
|
|
+ map.put("policyDocUpdateDate", DateUtil.parse(yearItem.get("date").toString()).toString("yyyy-MM-dd"));
|
|
|
+ map.put("policyDocYearCount", Convert.toInt(yearItem.get("count"), 0));
|
|
|
+ }
|
|
|
continue;
|
|
|
}
|
|
|
}
|
|
@@ -476,6 +486,7 @@ public class ArticleServiceImpl implements ArticleService {
|
|
|
if (Blank.isEmpty(column)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ // 跳过未超过更新时间
|
|
|
String isExceed = Convert.toStr(column.get("isExceed"), "0");
|
|
|
if ("0".equals(isExceed)) {
|
|
|
continue;
|