Browse Source

原材料出库任务:取消任务时,更新工单载具为无任务状态,可重新生成任务重新下发

master
zds 3 months ago
parent
commit
d95ba4fa5c
  1. 5
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLCKTask.java

5
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLCKTask.java

@ -318,6 +318,11 @@ public class YCLCKTask extends AbstractTask {
}
taskObj.setRemark("任务取消");
taskObj.setTask_status(TaskStatus.CANCELED.getCode());
String vehicleCode2 = taskObj.getVehicle_code2();
//pdm_bd_workorder_two任务完成时,status改为3
if(ObjectUtil.isNotEmpty(vehicleCode2)){
workorderService.update(vehicleCode2,"1");
}
}
taskService.update(taskObj);
}

Loading…
Cancel
Save