|
@@ -132,6 +132,8 @@ public class XxlJobService {
|
|
|
List<NotPublishPlan> notPublishPlan = publishContentMapper.getNotPublishPlan(todayStart);
|
|
|
List<FeishuTableDTO.Column> columns = buildCheckPublishPlanColumns();
|
|
|
List<JSONObject> rows = new ArrayList<>();
|
|
|
+ String dateStr = DateUtils.getCurrentDateStr("yyyy-MM-dd");
|
|
|
+ List<String> specialAdAccountNames = aigcBaseMapper.getTodaySpecialAdAccountNames(dateStr);
|
|
|
for (NotPublishPlan publishPlan : notPublishPlan) {
|
|
|
long now = System.currentTimeMillis();
|
|
|
int nowHour = DateUtils.getHourByTimestamp(now / 1000);
|
|
@@ -144,9 +146,9 @@ public class XxlJobService {
|
|
|
int planMinute = time.getMinute();
|
|
|
JSONObject obj = null;
|
|
|
if (nowHour - planHour == 1 && nowMinute > planMinute) {
|
|
|
- obj = sendFeishuPublishPlanNotPushWarn(publishPlan);
|
|
|
+ obj = sendFeishuPublishPlanNotPushWarn(publishPlan, specialAdAccountNames);
|
|
|
} else if (nowHour - planHour > 1) {
|
|
|
- obj = sendFeishuPublishPlanNotPushWarn(publishPlan);
|
|
|
+ obj = sendFeishuPublishPlanNotPushWarn(publishPlan, specialAdAccountNames);
|
|
|
}
|
|
|
if (obj != null) {
|
|
|
rows.add(obj);
|
|
@@ -205,7 +207,7 @@ public class XxlJobService {
|
|
|
private String errorMsg;
|
|
|
}
|
|
|
|
|
|
- private JSONObject sendFeishuPublishPlanNotPushWarn(NotPublishPlan publishPlan) {
|
|
|
+ private JSONObject sendFeishuPublishPlanNotPushWarn(NotPublishPlan publishPlan, List<String> specialAdAccountNames) {
|
|
|
Long todayStart = DateUtils.getTodayStart();
|
|
|
List<PublishAccount> publishAccounts = publishContentMapper.getPublishAccounts(publishPlan.getPlanId(), todayStart);
|
|
|
List<String> accountNames;
|
|
@@ -223,7 +225,8 @@ public class XxlJobService {
|
|
|
Iterator<PlanErrorMsgDetail> iterator = planErrorMsg.getErrorMsgDetails().iterator();
|
|
|
while (iterator.hasNext()) {
|
|
|
PlanErrorMsgDetail errorMsgDetail = iterator.next();
|
|
|
- if (errorMsgDetail.getErrorMsg().contains("45028")
|
|
|
+ if (specialAdAccountNames.contains(errorMsgDetail.getAccountName())
|
|
|
+ || errorMsgDetail.getErrorMsg().contains("45028")
|
|
|
|| errorMsgDetail.getErrorMsg().contains("48004")
|
|
|
|| errorMsgDetail.getErrorMsg().contains("50002")) {
|
|
|
iterator.remove();
|
|
@@ -326,7 +329,8 @@ public class XxlJobService {
|
|
|
+ "实际抓取数量: " + crawlerPlan.getCrawlerTotalNum());
|
|
|
try {
|
|
|
Thread.sleep(1000);
|
|
|
- } catch (Exception ignore) {}
|
|
|
+ } catch (Exception ignore) {
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return ReturnT.SUCCESS;
|