@ -36,7 +36,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* @author Chill
*/
@BladeCloudApplication
@EnableScheduling
//@EnableScheduling
public class SchedulingApplication {
public static void main(String[] args) {
@ -22,7 +22,7 @@ public class InitResourceJob {
private final IPersonResourceService personResourceService;
private final IEquipResourceService equipResourceService;
@Scheduled(cron = "* * 1 * * ?")
//@Scheduled(cron = "* * 1 * * ?")
public void initResourceJob() {
equipResourceService.initEquipResource();
personResourceService.initPersonResource();
@ -21,7 +21,7 @@ import org.springframework.stereotype.Component;
public class SchedulingJob {
private final IWorkOrderService workOrderService;
@Scheduled(cron = "0 0 8,12,16,20 * * ? ")
//@Scheduled(cron = "0 0 8,12,16,20 * * ? ")
public void schedulingJob() {
workOrderService.scheduling();
}