|
@ -133,7 +133,9 @@ public class KGHJRKTask extends AbstractTask { |
|
|
for (int i = schBasePointList.size() - 1; i >= 0; i--) { |
|
|
for (int i = schBasePointList.size() - 1; i >= 0; i--) { |
|
|
SchBasePoint temp = schBasePointList.get(i); |
|
|
SchBasePoint temp = schBasePointList.get(i); |
|
|
if (temp.getVehicle_qty() > 1 && |
|
|
if (temp.getVehicle_qty() > 1 && |
|
|
ObjectUtil.isEmpty(temp.getIng_task_code())) { |
|
|
//放货三拖一起放,只能到01位置
|
|
|
|
|
|
temp.getPoint_code().endsWith("01") |
|
|
|
|
|
&& ObjectUtil.isEmpty(temp.getIng_task_code())) { |
|
|
if (schBasePoint != null) { |
|
|
if (schBasePoint != null) { |
|
|
log.info("空固化架放货找到当前点位有货:{},取上一个空位:{}", temp.getPoint_code(), schBasePoint.getPoint_code()); |
|
|
log.info("空固化架放货找到当前点位有货:{},取上一个空位:{}", temp.getPoint_code(), schBasePoint.getPoint_code()); |
|
|
} else { |
|
|
} else { |
|
@ -191,6 +193,9 @@ public class KGHJRKTask extends AbstractTask { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
String startPoint = taskObj.getPoint_code1(); // 获取起点
|
|
|
String startPoint = taskObj.getPoint_code1(); // 获取起点
|
|
|
|
|
|
if (taskObj.getPoint_code2().startsWith("QHQ")) { |
|
|
|
|
|
taskObj.setPoint_code2("HCQ" + taskObj.getPoint_code2().substring(3)); |
|
|
|
|
|
} |
|
|
String endPoint = taskObj.getPoint_code2(); // 获取终点
|
|
|
String endPoint = taskObj.getPoint_code2(); // 获取终点
|
|
|
SchBasePoint startPointObj = pointService.getById(startPoint); |
|
|
SchBasePoint startPointObj = pointService.getById(startPoint); |
|
|
if (endPoint.startsWith("ZJBDJW")) { |
|
|
if (endPoint.startsWith("ZJBDJW")) { |
|
@ -207,7 +212,6 @@ public class KGHJRKTask extends AbstractTask { |
|
|
endPointObj.setIng_task_code(""); |
|
|
endPointObj.setIng_task_code(""); |
|
|
endPointObj.setVehicle_qty(1); |
|
|
endPointObj.setVehicle_qty(1); |
|
|
pointService.update(endPointObj); |
|
|
pointService.update(endPointObj); |
|
|
if("HCQ7".equals(endPointObj.getRegion_code())){ |
|
|
|
|
|
endPointObj = pointService.getById(endPoint.substring(0, endPoint.length() - 1) + "2"); |
|
|
endPointObj = pointService.getById(endPoint.substring(0, endPoint.length() - 1) + "2"); |
|
|
endPointObj.setIng_task_code(""); |
|
|
endPointObj.setIng_task_code(""); |
|
|
endPointObj.setVehicle_qty(1); |
|
|
endPointObj.setVehicle_qty(1); |
|
@ -216,7 +220,7 @@ public class KGHJRKTask extends AbstractTask { |
|
|
endPointObj.setIng_task_code(""); |
|
|
endPointObj.setIng_task_code(""); |
|
|
endPointObj.setVehicle_qty(1); |
|
|
endPointObj.setVehicle_qty(1); |
|
|
pointService.update(endPointObj); |
|
|
pointService.update(endPointObj); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 任务完成
|
|
|
// 任务完成
|
|
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode()); |
|
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode()); |
|
|