wangyunpeng 3 недель назад
Родитель
Сommit
ae1db8573b

+ 1 - 1
common-module/src/main/java/com/tzld/piaoquan/growth/common/service/Impl/MessageAttachmentServiceImpl.java

@@ -285,7 +285,7 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
         example.createCriteria().andDateEqualTo(date).andIsDeleteEqualTo(0);
         List<GuaranteesVideo> guaranteesVideos = guaranteesVideoMapper.selectByExample(example);
         if (CollectionUtils.isEmpty(guaranteesVideos)) {
-            LarkRobotUtil.sendMessage("获保底视频空,@薛一鸣");
+            LarkRobotUtil.sendMessage("获保底视频空,<at user_id=\"g6732afb\">王云鹏</at>");
             return null;
         }
         GuaranteedParam guaranteedParam = new GuaranteedParam();

+ 2 - 2
offline-module/src/main/java/com/tzld/piaoquan/offline/job/WeComHistoryDataJob.java

@@ -179,7 +179,7 @@ public class WeComHistoryDataJob {
                 LarkRobotUtil.sendTipMessage(sendDetail.getRemark() + "存在未发送记录,请检查");
                 //8点前报警
                 if (DateUtil.getHourOfDay() < 8 && (corpId == 1 || corpId == 3)) {
-                    LarkRobotUtil.sendNotPushMessage("<at user_id=\"all\">所有人</at> " + sendDetail.getRemark() + " 存在未发送记录,请检查");
+                    LarkRobotUtil.sendNotPushMessage("<at user_id=\"g6732afb\">王云鹏</at> " + sendDetail.getRemark() + " 存在未发送记录,请检查");
                 }
             }
             stringBuilder.append("总发送数量:").append(count).append("   ");
@@ -289,7 +289,7 @@ public class WeComHistoryDataJob {
                 if (sendDetail.getStaffId() == 3) {
                     LarkRobotUtil.sendTipMessage(sendDetail.getRemark() + "存在未发送记录,请检查");
                 } else {
-                    LarkRobotUtil.sendNotPushMessage("<at user_id=\"all\">所有人</at> " + sendDetail.getRemark() + " 存在未发送记录,请检查");
+                    LarkRobotUtil.sendNotPushMessage("<at user_id=\"g6732afb\">王云鹏</at> " + sendDetail.getRemark() + " 存在未发送记录,请检查");
                 }
             }
             stringBuilder.append("总发送数量:").append(count).append("   ");

+ 6 - 4
offline-module/src/main/java/com/tzld/piaoquan/offline/job/WeComMessageDataJob.java

@@ -481,7 +481,7 @@ public class WeComMessageDataJob {
         example.createCriteria().andIsSendEqualTo(0).andCreateTimeGreaterThan(DateUtil.getThatDayDate());
         long l = sendMessageMapper.countByExample(example);
         if (l > 0) {
-            LarkRobotUtil.sendMessage("存在发送失败消息,请检查@薛一鸣");
+            LarkRobotUtil.sendMessage("存在发送失败消息,请检查<at user_id=\"g6732afb\">王云鹏</at>");
         }
         return ReturnT.SUCCESS;
     }
@@ -592,7 +592,7 @@ public class WeComMessageDataJob {
         GuaranteedParam guaranteedParam = messageAttachmentService.getGuaranteedVideo(DateUtil.getNextDayDateString());
         if (guaranteedParam == null
                 || CollectionUtils.isEmpty(guaranteedParam.getVideoParamList())) {
-            LarkRobotUtil.sendMessage("@薛一鸣 保底视频异常,请检查" + DateUtil.getNextDayDateString());
+            LarkRobotUtil.sendMessage("<at user_id=\"g6732afb\">王云鹏</at> 保底视频异常,请检查" + DateUtil.getNextDayDateString());
         }
         return ReturnT.SUCCESS;
     }
@@ -604,7 +604,8 @@ public class WeComMessageDataJob {
         List<Long> videoIds = getTopThousandVideoIds();
         if (CollectionUtils.isEmpty(videoIds)) {
             XxlJobLogger.log("保底视频查询异常");
-            LarkRobotUtil.sendMessage("addMessageAttachmentJob 保底视频添加任务异常,请检查" + dt);
+            LarkRobotUtil.sendMessage("addMessageAttachmentJob 保底视频添加任务异常,请检查 " + dt
+                    + " <at user_id=\"g6732afb\">王云鹏</at>");
             return ReturnT.FAIL;
         }
 
@@ -617,7 +618,8 @@ public class WeComMessageDataJob {
             }
             if (currentVideoIds.size() < MAX_VIDEO_NUM) {
                 XxlJobLogger.log("保底视频可用数量不足,无法凑齐3个有效视频");
-                LarkRobotUtil.sendMessage("addMessageAttachmentJob 保底视频可用数量不足,无法凑齐3个有效视频,请检查" + dt);
+                LarkRobotUtil.sendMessage("addMessageAttachmentJob 保底视频可用数量不足,无法凑齐3个有效视频,请检查 " + dt
+                        + " <at user_id=\"g6732afb\">王云鹏</at>");
                 return ReturnT.FAIL;
             }
             GuaranteedParam guaranteedParam = new GuaranteedParam();