@ -120,6 +120,10 @@ public class MaintenancePlanServiceImpl extends BaseServiceImpl<MaintenancePlanM
});
deviceAttachService.saveBatch(newSave);
}
} else {
deviceAttachService.remove(Wrappers.lambdaQuery(DeviceAttach.class)
.eq(DeviceAttach::getDeviceId, plan.getId())
.eq(DeviceAttach::getStatus, 2));
return this.updateById(plan);