From 641f7bb8b2d2e23f1f5192fecf030a567151c7b5 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期二, 15 七月 2025 17:50:37 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/ghjtasrs' into ghjtasrs --- src/main/java/com/zy/asrs/task/BareBoardScheduler.java | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/BareBoardScheduler.java b/src/main/java/com/zy/asrs/task/BareBoardScheduler.java index c080f45..553ea93 100644 --- a/src/main/java/com/zy/asrs/task/BareBoardScheduler.java +++ b/src/main/java/com/zy/asrs/task/BareBoardScheduler.java @@ -2,17 +2,20 @@ import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.core.common.Cools; -import com.zy.asrs.entity.*; -import com.zy.asrs.service.*; +import com.zy.asrs.entity.BasDevp; +import com.zy.asrs.entity.BasRgv; +import com.zy.asrs.entity.RgvOneSign; +import com.zy.asrs.entity.WrkMastSta; +import com.zy.asrs.service.BasDevpService; +import com.zy.asrs.service.BasRgvService; +import com.zy.asrs.service.RgvOneSignService; +import com.zy.asrs.service.WrkMastStaService; import com.zy.asrs.task.handler.BareBoardHandler; -import com.zy.asrs.task.handler.WorkMastHandler; import com.zy.system.entity.Config; import com.zy.system.service.ConfigService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; -import java.util.Date; import java.util.List; /** @@ -35,7 +38,7 @@ @Autowired private WrkMastStaService wrkMastStaService; - @Scheduled(cron = "0/3 * * * * ? ") +// @Scheduled(cron = "0/3 * * * * ? ") private void execute(){//鑷姩璋冪┖鏉垮嚭搴� 2妤肩爜鍨涗綅缃� Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard")); if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("Y")){ @@ -46,7 +49,7 @@ } } - @Scheduled(cron = "0/3 * * * * ? ") +// @Scheduled(cron = "0/3 * * * * ? ") private void executeOne(){//鑷姩璋冪┖鏉垮嚭搴� 1妤肩爜鍨涗綅缃� Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard")); if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("Y")){ -- Gitblit v1.9.1