Forráskód Böngészése

处理异常返回

yfh 1 hónapja
szülő
commit
340df8d678
1 módosított fájl, 6 hozzáadás és 2 törlés
  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());