From a127d6f905fa2a3a47e2dd872ca24db70c158dd2 Mon Sep 17 00:00:00 2001 From: nidapeng <jp@doumee.com> Date: 星期五, 08 三月 2024 15:42:32 +0800 Subject: [PATCH] 更改头部 --- server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 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 f0fb7eb..7fa2107 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= 60*1000) + @Scheduled(fixedDelay= 30*1000) public void syncVistAppointData() throws Exception { if(Constants.DEALING_FROM_HK_VISIT){ return ; @@ -74,12 +74,20 @@ hkSyncVisitFromHKService.syncVistAppointData(new Date()); Constants.DEALING_FROM_HK_VISIT =false; }catch (Exception e){ - throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "瀵逛笉璧凤紝娴峰悍鍚屾鏁版嵁澶辫触~"); +// throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "瀵逛笉璧凤紝娴峰悍鍚屾鏁版嵁澶辫触~"); }finally { Constants.DEALING_FROM_HK_VISIT =false; } } /** + * 姣�10鍒嗛挓鎷夊彇涓�娆℃渶鏂拌瀹㈢櫥璁扮姸鎬侊紙棰勭害鎴愬姛鍜屽凡鐧昏锛� + * @throws Exception + */ + @Scheduled(fixedDelay= 10*60*1000) + public void syncVisitOuttimeStatus() throws Exception { + hkSyncVisitService.getOutTimeVisitRecord(); + } + /** * 涓嬭浇娴峰悍绯荤粺鍥剧墖鏁版嵁 * @throws Exception */ -- Gitblit v1.9.3