|
|
|
@ -1220,6 +1220,7 @@ public class ExcelService implements IExcelService { |
|
|
|
if (CollectionUtil.isEmpty(taskDateList)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
List<ProTaskSubTime> proTaskSubTimeList = new ArrayList<>(); |
|
|
|
for (CronConstant.TaskDate taskDate : taskDateList) { |
|
|
|
|
|
|
|
ProTaskSubTime proTaskSubTime = new ProTaskSubTime(); |
|
|
|
@ -1228,7 +1229,11 @@ public class ExcelService implements IExcelService { |
|
|
|
proTaskSubTime.setBeginTime(taskDate.getStartDate().getTime()); |
|
|
|
proTaskSubTime.setEndTime(taskDate.getEndDate().getTime()); |
|
|
|
|
|
|
|
taskSubTimeService.saveProTaskSubTask(proTaskSubTime); |
|
|
|
// taskSubTimeService.saveProTaskSubTask(proTaskSubTime);
|
|
|
|
proTaskSubTimeList.add(proTaskSubTime); |
|
|
|
} |
|
|
|
if(CollectionUtil.isNotEmpty(proTaskSubTimeList)){ |
|
|
|
taskDetailDao.insertSelectiveList(proTaskSubTimeList); |
|
|
|
} |
|
|
|
}catch (Exception e){ |
|
|
|
throw new BaseException(CodeEnum.NOT_SUPPORT_CYCLE.addMsg(taskDetail.getCycle())); |
|
|
|
|