项目定时任务注释
This commit is contained in:
+5
-1
@@ -426,7 +426,11 @@ public class ProjectServiceImpl implements ProjectService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "0 0/10 * * * ?")
|
/**
|
||||||
|
* 定时任务:将计划中的项目,且播种时间是今天的项目 变成进行中
|
||||||
|
* 每天凌晨4点执行一次
|
||||||
|
*/
|
||||||
|
@Scheduled(cron = "0 0 4 * * ?")
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void timingCheckProjectState(){
|
public void timingCheckProjectState(){
|
||||||
Boolean oldIgnore = TenantContextHolder.isIgnore();
|
Boolean oldIgnore = TenantContextHolder.isIgnore();
|
||||||
|
|||||||
Reference in New Issue
Block a user