Ver código fonte

发布计划未发布完成报警 校验今日异常信息

wangyunpeng 1 mês atrás
pai
commit
6934904917

+ 3 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/XxlJobService.java

@@ -280,10 +280,13 @@ public class XxlJobService {
             return null;
         }
         PlanErrorMsg planErrorMsg = JSONObject.parseObject(publishPlan.getErrorMsg(), PlanErrorMsg.class);
+        String dateStr = DateUtils.getCurrentDateStr("yyyy-MM-dd");
         if (planErrorMsg == null) {
             return null;
         } else if (CollectionUtil.isEmpty(planErrorMsg.getErrorMsgDetails())) {
             return null;
+        } else if (!dateStr.equals(planErrorMsg.getDate())) {
+            return null;
         }
         Iterator<PlanErrorMsgDetail> iterator = planErrorMsg.getErrorMsgDetails().iterator();
         while (iterator.hasNext()) {