luowei 2 lat temu
rodzic
commit
0fcbaa3c74

+ 5 - 1
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/access/service/impl/TMonitoringRetrievalPlanServiceImpl.java

@@ -221,7 +221,11 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
             }
         }
         if (tMonitoringRetrievalPlan.getPlanCycle().equals(ZERO.toString()) && CollectionUtils.isNotEmpty(tMonitoringRetrievalPlans)) {
-            iCoreMonitoringRetrievalTaskService.noCycleTask(tMonitoringRetrievalPlans);
+           try {
+               iCoreMonitoringRetrievalTaskService.noCycleTask(tMonitoringRetrievalPlans);
+           }catch (Exception e){
+               throw new ServiceException("下发任务异常,请联系管理员");
+           }
         }
         return i;
     }