|
@@ -692,7 +692,7 @@ public class CheckJobServiceImpl extends BaseServiceImpl<CheckJobMapper, CheckJo
|
|
|
startDate = DateUtils.plus(localDateTime.toLocalDate(), checkStandard.getPeriod(), ChronoUnit.YEARS);
|
|
|
endDate = DateUtils.plus(startDate, 60, ChronoUnit.DAYS);
|
|
|
}
|
|
|
- startDate = DateUtils.plus(endDate, -1, ChronoUnit.DAYS);
|
|
|
+ startDate = DateUtils.plus(startDate, -1, ChronoUnit.DAYS);
|
|
|
endDate = DateUtils.plus(endDate, -1, ChronoUnit.DAYS);
|
|
|
checkJob.setStartTime(startDate);
|
|
|
checkJob.setEndTime(endDate);
|
|
@@ -824,7 +824,6 @@ public class CheckJobServiceImpl extends BaseServiceImpl<CheckJobMapper, CheckJo
|
|
|
nextCheckJob.setRemark(checkStandard.getRemark());
|
|
|
nextCheckJob.setName(checkStandard.getName());
|
|
|
nextCheckJob.setId(IdGeneratorUtils.getObjectId());
|
|
|
- calcTime(nextCheckJob,now,checkStandard);
|
|
|
mapper.insert(nextCheckJob);
|
|
|
}
|
|
|
|