yfh пре 1 месец
родитељ
комит
340df8d678
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      fs-admin/src/main/java/com/fs/his/task/Task.java

+ 6 - 2
fs-admin/src/main/java/com/fs/his/task/Task.java

@@ -1713,8 +1713,12 @@ public class Task {
         for (Map.Entry<String, BatchSendCourseAllDTO> entry : toSendMap) {
             //执行发送消息任务
             BatchSendCourseAllDTO batchSendCourseAllDTO = entry.getValue();
-            openIMService.batchUrgeCourseTask(batchSendCourseAllDTO.getOpenImBatchMsgDTO(), batchSendCourseAllDTO.getImMsgSendDetailList());
-
+            try {
+                openIMService.batchUrgeCourseTask(batchSendCourseAllDTO.getOpenImBatchMsgDTO(), batchSendCourseAllDTO.getImMsgSendDetailList());
+            }catch (Exception e){
+                e.printStackTrace();
+                continue;
+            }
             // 执行结束,删除
             this.redisTemplate.<String, BatchSendCourseAllDTO>opsForHash().delete(redisKey, entry.getKey());