ÎļþÃû´Ó server/admin_timer/src/main/java/com/doumee/task/ScheduleCommonTool.java ÐÞ¸Ä |
| | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 宿¶ä»»å¡ |
| | | * 宿¶ä»»å¡ï¼åºå¼ï¼ |
| | | * @author jiangping |
| | | * @date 2021-10-10 14:40:35 |
| | | * https://www.bejson.com/othertools/cron/ cron 表达å¼çæå°å |
| | | */ |
| | | //@Component |
| | | //@EnableScheduling |
| | | public class ScheduleCommonTool { |
| | | @Component |
| | | @EnableScheduling |
| | | public class ScheduleTool { |
| | | |
| | | @Autowired |
| | | private HkSyncParkServiceImpl hkSyncParkService; |
| | | @Autowired |
| | | private HkSyncImgServiceImpl hkSyncImgService; |
| | | @Autowired |
| | | private HkSyncEmpowerServiceImpl hkSyncEmpowerService; |
| | | @Autowired |
| | | private HkSyncOrgUserToHKServiceImpl hkSyncOrgUserService; |
| | | @Autowired |
| | |
| | | * æ¯åéæå䏿¬¡ä»æ¥ç访客é¢çº¦æ°æ® |
| | | * @throws Exception |
| | | */ |
| | | @Scheduled(fixedRate= 30*1000) |
| | | @Scheduled(fixedRate= 3*60*1000) |
| | | public void syncVistAppointData() throws Exception { |
| | | if(Constants.DEALING_FROM_HK_VISIT){ |
| | | return ; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 宿¶å»ç»å
é¨äººå |
| | | */ |
| | |
| | | * æ¯å¤©æ¸
çè¶
è¿ä¸å¨çæ¥å£æ¥å¿æ°æ®ï¼æ¸
é¤åå®é²å¹³å°å¯¹æ¥çæ¥å£æ°æ®ï¼ |
| | | * @throws Exception |
| | | */ |
| | | @Scheduled(cron= "0 0 23 * * ?") |
| | | // @Scheduled(cron= "0 0 23 * * ?") |
| | | public void clearThreeMonthLog() throws Exception { |
| | | interfaceLogService.clearThreeMonthLog(); |
| | | } |