emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/schedule/KeepAliveRobot.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/schedule/KeepAliveRobot.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/schedule/KeepAliveRobot.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
incident-manage/incident-manage-service/src/main/java/com/gkhy/safePlatform/incidentManage/schedule/KeepAliveRobot.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/schedule/KeepAliveRobot.java
对比新文件 @@ -0,0 +1,27 @@ package com.gkhy.safePlatform.emergency.schedule; import com.gkhy.safePlatform.emergency.service.baseService.EmergencyPlanInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component("emergencyKeepAlive") @EnableScheduling @ConditionalOnProperty(prefix = "threadPool.scheduling", name = "enabled", havingValue = "true") public class KeepAliveRobot { @Autowired private EmergencyPlanInfoService emergencyPlanInfoService; // 30m @Scheduled(cron = "0 0/30 * * * ?") public void keepAlive(){ // emergencyPlanInfoService.getById(-1L); } } equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/schedule/KeepAliveRobot.java
对比新文件 @@ -0,0 +1,27 @@ package com.gkhy.safePlatform.equipment.schedule; import com.gkhy.safePlatform.equipment.service.EquipmentInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component("equipmentKeepAlive") @EnableScheduling @ConditionalOnProperty(prefix = "threadPool.scheduling", name = "enabled", havingValue = "true") public class KeepAliveRobot { @Autowired private EquipmentInfoService equipmentInfoService; // 30m @Scheduled(cron = "0 0/30 * * * ?") public void keepAlive(){ // equipmentInfoService.getById(-1L); } } goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/schedule/KeepAliveRobot.java
对比新文件 @@ -0,0 +1,27 @@ package com.gkhy.safePlatform.targetDuty.schedule; import com.gkhy.safePlatform.targetDuty.service.TargetTypeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component("goalKeepAlive") @EnableScheduling @ConditionalOnProperty(prefix = "threadPool.scheduling", name = "enabled", havingValue = "true") public class KeepAliveRobot { @Autowired private TargetTypeService targetTypeService; // 30m @Scheduled(cron = "0 0/30 * * * ?") public void keepAlive(){ // targetTypeService.getById(-1L); } } incident-manage/incident-manage-service/src/main/java/com/gkhy/safePlatform/incidentManage/schedule/KeepAliveRobot.java
对比新文件 @@ -0,0 +1,27 @@ package com.gkhy.safePlatform.incidentManage.schedule; import com.gkhy.safePlatform.incidentManage.service.baseService.AccidentCaseInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component("incidentKeepAlive") @EnableScheduling @ConditionalOnProperty(prefix = "threadPool.scheduling", name = "enabled", havingValue = "true") public class KeepAliveRobot { @Autowired private AccidentCaseInfoService accidentCaseInfoService; // 30m @Scheduled(cron = "0 0/30 * * * ?") public void keepAlive(){ // accidentCaseInfoService.getById(-1L); } }