Procházet zdrojové kódy

兼容保底数据为空

xueyiming před 5 měsíci
rodič
revize
2ffccd2903

+ 3 - 1
we-com-server/src/main/java/com/tzld/piaoquan/wecom/job/WeComMessageDataJob.java

@@ -84,7 +84,9 @@ public class WeComMessageDataJob {
         String sql = String.format("SELECT * FROM loghubods.history_good_video_can_push_user_list where dt = %s;",
                 DateUtil.getBeforeDayDateString());
         List<Record> recordList = OdpsUtil.getOdpsData(sql);
-        if (!CollectionUtils.isEmpty(recordList)) {
+        if (CollectionUtils.isEmpty(recordList)) {
+            LarkRobotUtil.sendMessage("历史优质视频为空");
+        } else {
             List<PushMessage> list = new ArrayList<>();
             for (Record record : recordList) {
                 PushMessage pushMessage = new PushMessage();