Browse Source

项目定时任务注释

zyh
zhanyunjiu 2 years ago
parent
commit
0b96c77838
  1. 6
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java

6
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();

Loading…
Cancel
Save