|
|
@@ -47,12 +47,13 @@ public class EnrollmentStatisticsInfoTask {
|
|
|
|
|
|
void doExecute() {
|
|
|
LocalDate now = LocalDate.now();
|
|
|
+ String dataDate = now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
|
|
EnrollmentStatisticsInfoDto dto = new EnrollmentStatisticsInfoDto();
|
|
|
// dto.setDay(now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
|
|
|
dto.setYear(now.getYear() + "");
|
|
|
EnrollmentStatisticsInfoVo info = pbCseFeeobjupdateService.getEnrollmentStatisticsInfo(dto);
|
|
|
if(info != null){
|
|
|
-
|
|
|
+ enrollmentStatisticsInfoMapper.deleteDataByDate(dataDate);
|
|
|
EnrollmentStatisticsInfo infoData = new EnrollmentStatisticsInfo();
|
|
|
infoData.setEnabledMark(EnabledMark.ENABLED.getCode());
|
|
|
infoData.setDeleteMark(DeleteMark.NODELETE.getCode());
|
|
|
@@ -60,10 +61,10 @@ public class EnrollmentStatisticsInfoTask {
|
|
|
infoData.setCreateUserId(1000000000000000000L);
|
|
|
infoData.setDataJson(JsonUtil.toJsonString(info));
|
|
|
infoData.setDataType(1);
|
|
|
+ infoData.setDataDay(now);
|
|
|
enrollmentStatisticsInfoMapper.insert(infoData);
|
|
|
}
|
|
|
|
|
|
- String dataDate = now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
|
|
EnrollmentStatisticsGraduationInfoDto graduationInfoDto = new EnrollmentStatisticsGraduationInfoDto();
|
|
|
graduationInfoDto.setDay(dataDate);
|
|
|
EnrollmentStatisticsGraduationInfoVo graduationInfo = pbCseFeeobjupdateService.getEnrollmentStatisticsGraduationInfo(graduationInfoDto);
|
|
|
@@ -82,7 +83,6 @@ public class EnrollmentStatisticsInfoTask {
|
|
|
enrollmentStatisticsInfoMapper.insert(infoData);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
LocalDate thisSaturday = now.with(TemporalAdjusters.nextOrSame(DayOfWeek.SATURDAY));
|
|
|
LocalDate thisMonday = now.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY));
|
|
|
LocalDate lastSunday = thisMonday.minusDays(1);
|