|
@@ -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();
|