xiongchao 3 년 전
부모
커밋
6f0c61c601
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      platform-service/src/main/java/com/platform/service/check/impl/CheckJobServiceImpl.java

+ 1 - 2
platform-service/src/main/java/com/platform/service/check/impl/CheckJobServiceImpl.java

@@ -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);
         }