|
@@ -610,7 +610,12 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
|
|
|
l.setMonthNum(months);
|
|
|
l.setEndMonth(endDate);
|
|
|
l.setIsContinue(0);
|
|
|
-
|
|
|
+ // 获取当前日期的 LocalDate 对象
|
|
|
+ LocalDate now = LocalDate.now();
|
|
|
+ // 将 LocalDate 对象的日期设置为当前月份的第一天
|
|
|
+ LocalDate firstDayOfMonth = now.withDayOfMonth(1);
|
|
|
+ // 将 LocalDate 对象转换为 Date 对象
|
|
|
+ endDate = Date.from(firstDayOfMonth.atStartOfDay(ZoneId.systemDefault()).toInstant());
|
|
|
// 当前这个工单所对应的委托根据endDate去查询,查询条件是大于endDate的,更新字段deleted为1
|
|
|
bizArchiveInputMapper.deleteByDate(l.getId(),endDate,l.getTaskTypeId());
|
|
|
// 旧任务明细 停止
|