|
@@ -920,6 +920,22 @@ public class TimingTask {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //定时同步申请单 3:请假单;4:加班申请;(存在一张单据多人请假的情况)5:车间提前下班申请单 6考勤证明补卡单
|
|
|
+ @Scheduled(cron = "0 40 3 ? * *")
|
|
|
+ public void temporarilyApplyFormDataDingShi() throws Exception {
|
|
|
+ if (isDev) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
+ LocalDate start = LocalDate.now().minusDays(30);
|
|
|
+ LocalDate end = LocalDate.now();
|
|
|
+ String startDate = df.format(start);
|
|
|
+ String endDate = df.format(end);
|
|
|
+ for (int i = 3; i <=6 ; i++) {
|
|
|
+ temporarilyApplyFormData(endDate,startDate,i);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public void getTemporaryJobApplicationNewWithDate(String endDate,String startDate) throws Exception {
|
|
|
if(isDev){
|
|
@@ -1409,12 +1425,6 @@ public class TimingTask {
|
|
|
}
|
|
|
planService.save(plan);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
public void temporarilyApplyFormData(String endDate, String startDate, Integer templateType) throws Exception {
|