Bläddra i källkod

手动关闭预案,3Min不触发新的预案

hanzhiwei 2 år sedan
förälder
incheckning
66b383568d

+ 2 - 0
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/service/impl/LabRiskPlanServiceImpl.java

@@ -1100,6 +1100,8 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
             if (redisService.getCacheObject("subjectByYa" + subFunction.getSubId()) != null) {
                 redisService.deleteObject("subjectByYa" + subFunction.getSubId());
             }
+            //设置手动关闭预案 延时触发时间
+            redisService.setCacheObject("subjectByYa" + subFunction.getSubId(), subFunction.getSubId(), 180L, TimeUnit.SECONDS);
             //向前端发送预案关闭
             messageSendService.riskPlanTriggerNotice();
         }