维修完成后,根据设备点检结果,创建当日任务;

master
zpl 3 years ago
parent 7c7be6aca7
commit b2590dd89e

@ -272,6 +272,10 @@ public class ResourceRepairTaskServiceImpl extends ServiceImpl<ResourceRepairTas
inspectTask.setCreatedDateTime(now); inspectTask.setCreatedDateTime(now);
inspectTask.setTaskCreateDate(now); inspectTask.setTaskCreateDate(now);
inspectTask.setPlanStartDate(now); inspectTask.setPlanStartDate(now);
inspectTask.setActualStartDate(null);
inspectTask.setStatus(Constants.INSPECTION_TASK_STATUS_NEW);
inspectTask.setModifyUser(null);
inspectTask.setModifiedDateTime(null);
resourceInspectTaskMapper.insert(inspectTask); resourceInspectTaskMapper.insert(inspectTask);
break; break;
} }

Loading…
Cancel
Save