修改提交

This commit is contained in:
haozq 2024-06-20 14:13:37 +08:00
parent f2105f7cf5
commit 4dc7a49d37
1 changed files with 57 additions and 57 deletions

View File

@ -1,57 +1,57 @@
package com.xxl.job.executor.service.jobhandler;
import com.xxl.job.executor.inter.service.InterServiceTest;
import org.springframework.scheduling.annotation.Scheduled;
import javax.annotation.PostConstruct;
/**
* 数据中台 处理中心
* @author 黑子
*/
//@Component
//@EnableScheduling
public class DataCenterXxlJobTest {
//@Autowired
private InterServiceTest interService;
/**
* 项目部定时任务
* @return void
* @author cwchen
* @date 2024/5/8 16:00
*/
@Scheduled(cron = "0 30 * * * ?")
@PostConstruct
public void getProInfo() {
System.err.println("1");
interService.getProInfo(1);
System.err.println("2");
}
@Scheduled(cron = "0 30 * * * ?")
@PostConstruct
public void getSingleProjectInfo() {
System.err.println("sign");
interService.getSingleProjectInfo(1);
System.err.println("sign");
}
@Scheduled(cron = "0 30 * * * ?")
@PostConstruct
public void getBidPro() {
System.err.println("bd");
interService.getBidPro(1);
System.err.println("bd");
}
@Scheduled(cron = "0 30 * * * ?")
@PostConstruct
public void getDeptGcProject() {
System.err.println("bd");
interService.getDeptGcProject(1);
System.err.println("bd");
}
}
//package com.xxl.job.executor.service.jobhandler;
//
//import com.xxl.job.executor.inter.service.InterServiceTest;
//import org.springframework.scheduling.annotation.Scheduled;
//
//import javax.annotation.PostConstruct;
//
///**
// * 数据中台 处理中心
// * @author 黑子
// */
////@Component
////@EnableScheduling
//public class DataCenterXxlJobTest {
//
// //@Autowired
// private InterServiceTest interService;
//
// /**
// * 项目部定时任务
// * @return void
// * @author cwchen
// * @date 2024/5/8 16:00
// */
// @Scheduled(cron = "0 30 * * * ?")
// @PostConstruct
// public void getProInfo() {
// System.err.println("1");
// interService.getProInfo(1);
// System.err.println("2");
// }
// @Scheduled(cron = "0 30 * * * ?")
// @PostConstruct
// public void getSingleProjectInfo() {
// System.err.println("sign");
// interService.getSingleProjectInfo(1);
// System.err.println("sign");
// }
// @Scheduled(cron = "0 30 * * * ?")
// @PostConstruct
// public void getBidPro() {
// System.err.println("bd");
// interService.getBidPro(1);
// System.err.println("bd");
// }
// @Scheduled(cron = "0 30 * * * ?")
// @PostConstruct
// public void getDeptGcProject() {
// System.err.println("bd");
// interService.getDeptGcProject(1);
// System.err.println("bd");
// }
//
//
//
//
//}