From 0b96c77838c41d8b1c1e10a187f80d6cdbb4aeeb Mon Sep 17 00:00:00 2001 From: zhanyunjiu <787952492@qq.com> Date: Thu, 4 Aug 2022 10:48:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/farm/service/project/ProjectServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java index 455e88dc..9e33a8a4 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java @@ -426,7 +426,11 @@ public class ProjectServiceImpl implements ProjectService { } } - @Scheduled(cron = "0 0/10 * * * ?") + /** + * 定时任务:将计划中的项目,且播种时间是今天的项目 变成进行中 + * 每天凌晨4点执行一次 + */ + @Scheduled(cron = "0 0 4 * * ?") @Transactional(rollbackFor = Exception.class) public void timingCheckProjectState(){ Boolean oldIgnore = TenantContextHolder.isIgnore();