psh 10 months ago
parent
commit
4a3e149e66
  1. 5
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/BPSLTask.java

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

@ -87,9 +87,10 @@ public class BPSLTask extends AbstractTask {
log.info("包片上料未找到当前符合条件的点位materialType:{},",materialType); log.info("包片上料未找到当前符合条件的点位materialType:{},",materialType);
continue; continue;
} }
task.setTask_type("3");
// 设置起点并修改创建成功状态 // 设置起点并修改创建成功状态
// 取料先去等待点 // 取料先去等待点
task.setTask_type("3");
task.setPoint_code1(point.getNext_wait_point()); task.setPoint_code1(point.getNext_wait_point());
task.setTask_status(TaskStatus.CREATED.getCode()); task.setTask_status(TaskStatus.CREATED.getCode());
task.setRemark(""); task.setRemark("");
@ -219,7 +220,7 @@ public class BPSLTask extends AbstractTask {
if (startPointObj.getPoint_code().startsWith("ZJBDJW")) { if (startPointObj.getPoint_code().startsWith("ZJBDJW")) {
startPointObj.setVehicle_qty(startPointObj.getVehicle_qty() + 1); startPointObj.setVehicle_qty(startPointObj.getVehicle_qty() + 1);
} }
pointService.update(endPointObj); pointService.update(startPointObj);
} }
taskObj.setRemark("任务取消"); taskObj.setRemark("任务取消");
taskObj.setTask_status(TaskStatus.CANCELED.getCode()); taskObj.setTask_status(TaskStatus.CANCELED.getCode());

Loading…
Cancel
Save