Browse Source

checkPublishPlan

wangyunpeng 2 weeks ago
parent
commit
fc8db148e1

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

@@ -217,6 +217,9 @@ public class XxlJobService {
                 rows.add(obj);
             }
         }
+        if (CollectionUtil.isEmpty(rows)) {
+            return ReturnT.SUCCESS;
+        }
 
         FeishuTableDTO tableDTO = FeishuTableDTO.createTable("发布计划超1H未发送完成", columns, rows, false);
         JSONObject content = JSONObject.parseObject(JSONObject.toJSONString(tableDTO));
@@ -301,6 +304,7 @@ public class XxlJobService {
                 accountNames.remove(errorMsgDetail.getAccountName());
             }
         }
+        accountNames.removeIf(specialAdAccountNames::contains);
         if (CollectionUtil.isEmpty(planErrorMsg.getErrorMsgDetails())
                 || CollectionUtil.isEmpty(accountNames)) {
             return null;