|
@@ -639,8 +639,19 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
|
|
|
// l.setIsContinue(0);
|
|
|
if (records.isEmpty()) {
|
|
|
System.out.println("进到算月份的地方了606");
|
|
|
+ if(l.getTaskTypeId() == 1L){
|
|
|
+ months++;
|
|
|
+ }
|
|
|
+ // 不停止工单 只修改工单完成时间
|
|
|
+ l.setMonthNum(months);
|
|
|
+ // 获取当前日期的 LocalDate 对象
|
|
|
+ LocalDate now = LocalDate.now();
|
|
|
+ // 将 LocalDate 对象的日期设置为当前月份的第一天
|
|
|
+ LocalDate firstDayOfMonth = now.withDayOfMonth(1);
|
|
|
+ // 将 LocalDate 对象转换为 Date 对象
|
|
|
+ endDate = Date.from(firstDayOfMonth.atStartOfDay(ZoneId.systemDefault()).toInstant());
|
|
|
+ l.setEndMonth(endDate);
|
|
|
// 停止工单
|
|
|
- l.setIsStop(1);
|
|
|
l.setIsContinue(0);
|
|
|
updateMonth(bizArchiveInput, l, details);
|
|
|
} else {
|