|
@@ -159,9 +159,11 @@ public class MaintenanceRecordService extends ServiceImpl<MaintenanceRecordMappe
|
|
|
Iterator<MaintenancePlan> iterator = planList.iterator();
|
|
|
if (iterator.hasNext()) {
|
|
|
MaintenancePlan next = iterator.next();
|
|
|
+ log.info("当前计划" + gson.toJson(next));
|
|
|
if (Objects.nonNull(next))
|
|
|
iterator.remove();
|
|
|
}
|
|
|
+ log.info("删除前的保养计划" + gson.toJson(planList));
|
|
|
//获取当前时间后的维保计划列表,并清除计划
|
|
|
maintenancePlanService.removeByIds(planList.stream().map(MaintenancePlan::getId).collect(Collectors.toList()));
|
|
|
//按照修改时间重新生成计划
|