|
@@ -68,25 +68,6 @@ public class AttendanceSignDispatchTask {
|
|
|
}
|
|
}
|
|
|
attendanceSignRecordService.getSaveSignRecord();
|
|
attendanceSignRecordService.getSaveSignRecord();
|
|
|
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- log.error("syncSignData error ----",e);
|
|
|
|
|
- } finally {
|
|
|
|
|
- // 👉 确保一定释放锁(防死锁)
|
|
|
|
|
- syncLock.unlock();
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Scheduled(cron ="0 * * * * ? ")
|
|
|
|
|
- public void getDelayedSign() throws ParseException {
|
|
|
|
|
-
|
|
|
|
|
- if (!syncLock.tryLock()) {
|
|
|
|
|
- log.warn("syncSignData 正在执行中,本次调度跳过");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- try {
|
|
|
|
|
- if(!"prod".equals(environment)) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
attendanceSignRecordService.getDelayedSign();
|
|
attendanceSignRecordService.getDelayedSign();
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|