bug修复

This commit is contained in:
guo 2024-01-03 10:39:52 +08:00
parent d4b4980ac4
commit 0322f41df7
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ public class ElectricalTask {
*/
@SchedulerLock(name = "getElectricRealTimeData", lockAtMostFor = 1000 * 60 * 5, lockAtLeastFor = 1000 * 60 * 3)
@Scheduled(cron = "0 0/5 * * * ?")
@GetMapping("/task/getElectricRealTimeData")
@GetMapping("/xmgl/task/getElectricRealTimeData")
public void getElectricRealTimeData() {
log.info("获取最新电量使用情况 每5分钟触发任务");
if (StringUtils.isNotBlank(url)) {

View File

@ -45,7 +45,7 @@ public class GantryCraneTask {
*/
@SchedulerLock(name = "getGantryCraneTaskData", lockAtMostFor = 1000 * 60 * 60, lockAtLeastFor = 1000 * 60 * 5)
@Scheduled(cron = "0 0/5 * * * ?")
@GetMapping("task/getGantryCraneTaskData")
@GetMapping("/xmgl/task/getGantryCraneTaskData")
public void getGantryCraneTaskData() {
log.info("getGantryCraneTaskData任务执行");
List<GantryCrane> gantryCranes = gantryCraneMapper.selectList(new LambdaQueryWrapper<GantryCrane>()

View File

@ -274,7 +274,7 @@ public class StandardDevTask {
*/
@Scheduled(cron = "0 0/2 * * * ?")
@SchedulerLock(name = "getStandardData", lockAtMostFor = 1000 * 60 * 2, lockAtLeastFor = 1000 * 60 * 1)
@GetMapping("/task/getStandardData")
@GetMapping("/xmgl/task/getStandardData")
public void getStandardData() {
try {
log.info("------------拉取执行标样室时数据任务开始---------");