@ -114,7 +114,10 @@ public class MaintenancePlanServiceImpl extends BaseServiceImpl<MaintenancePlanM
.notIn(CollectionUtils.isNotEmpty(ids), DeviceAttach::getId, ids));
if (CollectionUtil.isNotEmpty(newSave)) {
newSave.forEach(maintenance -> maintenance.setDeviceId(plan.getId()));
newSave.forEach(maintenance -> {
maintenance.setDeviceId(plan.getId());
maintenance.setStatus(2);
});
deviceAttachService.saveBatch(newSave);
}