From 755b60c531999e9d3c0a94759a2a5e92f5e4ad4e Mon Sep 17 00:00:00 2001 From: nidapeng <jp@doumee.com> Date: 星期一, 25 三月 2024 14:18:01 +0800 Subject: [PATCH] 整理 --- server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java b/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java index 5fa143f..da5d9f1 100644 --- a/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java +++ b/server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java @@ -26,8 +26,8 @@ * @date 2021-10-10 14:40:35 * https://www.bejson.com/othertools/cron/ cron 琛ㄨ揪寮忕敓鎴愬湴鍧� */ -@Component -@EnableScheduling +//@Component +//@EnableScheduling public class ScheduleTool { @Autowired @@ -64,7 +64,7 @@ * 姣忓垎閽熸媺鍙栦竴娆′粖鏃ョ殑璁垮棰勭害鏁版嵁 * @throws Exception */ - @Scheduled(fixedDelay= 30*1000) + @Scheduled(fixedRate= 30*1000) public void syncVistAppointData() throws Exception { if(Constants.DEALING_FROM_HK_VISIT){ return ; @@ -83,7 +83,7 @@ * 姣�10鍒嗛挓鎷夊彇涓�娆℃渶鏂拌瀹㈢櫥璁扮姸鎬侊紙棰勭害鎴愬姛鍜屽凡鐧昏锛� * @throws Exception */ - @Scheduled(fixedDelay= 10*60*1000) + @Scheduled(fixedRate= 10*60*1000) public void syncVisitOuttimeStatus() throws Exception { hkSyncVisitService.getOutTimeVisitRecord(); } @@ -91,7 +91,7 @@ * 涓嬭浇娴峰悍绯荤粺鍥剧墖鏁版嵁 * @throws Exception */ - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void downloadHkImg() throws Exception { if(dataSyncConfig.getNeedDealImg()!=null && dataSyncConfig.getNeedDealImg()){ hkSyncImgService.downHKImgs(0); @@ -101,7 +101,7 @@ * 瀹氭椂鍚屾缁勭粐淇℃伅鍒版捣搴风郴缁� * @throws Exception */ - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void syncOrgData() { if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp){ //濡傛灉鏄疎RP绯荤粺鍚屾涓嬪彂 @@ -112,7 +112,7 @@ * 瀹氭椂鍚屾鐢ㄦ埛淇℃伅鍒版捣搴风郴缁� * @throws Exception */ - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void syncUserData() { if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp) { //濡傛灉鏄疎RP绯荤粺鍚屾涓嬪彂 @@ -123,7 +123,7 @@ * 瀹氭椂鍚屾鐢宠閫氳繃鐨勮瀹㈡暟鎹埌娴峰悍绯荤粺 * @throws Exception */ - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void syncVisitData() { hkSyncVisitService.syncVisitData(); } @@ -131,7 +131,7 @@ * 瀹氭椂鍚屾鍐呴儴浜哄憳鎺堟潈鍒版捣搴风郴缁� * @throws Exception *//* - @Scheduled(fixedDelay= 3*1000) + @Scheduled(fixedRate= 3*1000) public void syncEmpowerData() { hkSyncEmpowerService.syncEmpowerData(); } @@ -139,7 +139,7 @@ * 瀹氭椂鏌ヨ浜哄憳涓嬪彂娴峰悍缁撴灉锛堜换鍔℃槸鍚﹀凡涓嬭浇缁撴潫锛� * @throws Exception *//* - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void syncEmpowerResultData() { hkSyncEmpowerService.syncEmpowerResultData(); } @@ -147,7 +147,7 @@ * 瀹氭椂鏌ヨ浜哄憳瀹為檯涓嬪彂鏉冮檺缁撴灉锛屾槸鍚﹀凡缁忎笅杞芥垚鍔� * @throws Exception *//* - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void syncEmpowerDetailData() { hkSyncEmpowerService.syncEmpowerDetailData(); }*/ @@ -155,7 +155,7 @@ * 瀹氭椂鍚屾杞﹁締鍖呮湡鍒版捣搴风郴缁� * @throws Exception */ - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void syncParkBookData() { hkSyncParkService.syncParkBookData(); } @@ -164,7 +164,7 @@ /** * 瀹氭椂鍐荤粨鍐呴儴浜哄憳 */ - @Scheduled(fixedDelay= 60*1000) + @Scheduled(fixedRate= 60*1000) public void memberFreeze() { memberService.memberFreeze(); } -- Gitblit v1.9.3