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