|
@ -110,7 +110,7 @@ public class TBXBKJTask extends AbstractTask { |
|
|
String regionCode = null; |
|
|
String regionCode = null; |
|
|
if ("TBX1".equals(startPoint.getRegion_code())) { |
|
|
if ("TBX1".equals(startPoint.getRegion_code())) { |
|
|
//TBX1找A区
|
|
|
//TBX1找A区
|
|
|
regionCode = "HCQ1"; |
|
|
regionCode = "HCQ3"; |
|
|
|
|
|
|
|
|
} else if ("TBX2".equals(startPoint.getRegion_code())) { |
|
|
} else if ("TBX2".equals(startPoint.getRegion_code())) { |
|
|
//TBX2找B区
|
|
|
//TBX2找B区
|
|
@ -158,6 +158,11 @@ public class TBXBKJTask extends AbstractTask { |
|
|
taskObj.setRemark("任务完成"); |
|
|
taskObj.setRemark("任务完成"); |
|
|
} |
|
|
} |
|
|
if (status.equals(TaskStatus.CANCELED)) { // 取消
|
|
|
if (status.equals(TaskStatus.CANCELED)) { // 取消
|
|
|
|
|
|
// 起点解锁
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(startPointObj)) { |
|
|
|
|
|
startPointObj.setIng_task_code(""); |
|
|
|
|
|
pointService.update(endPointObj); |
|
|
|
|
|
} |
|
|
// 终点解锁
|
|
|
// 终点解锁
|
|
|
if (ObjectUtil.isNotEmpty(endPointObj)) { |
|
|
if (ObjectUtil.isNotEmpty(endPointObj)) { |
|
|
endPointObj.setIng_task_code(""); |
|
|
endPointObj.setIng_task_code(""); |
|
@ -186,10 +191,10 @@ public class TBXBKJTask extends AbstractTask { |
|
|
.eq(SchBasePoint::getPoint_code, schBaseTask.getPoint_code2())); |
|
|
.eq(SchBasePoint::getPoint_code, schBaseTask.getPoint_code2())); |
|
|
SchBasePoint point = this.findNextPoint(startPoint); |
|
|
SchBasePoint point = this.findNextPoint(startPoint); |
|
|
schBaseTask.setPoint_code1(point.getPoint_code()); |
|
|
schBaseTask.setPoint_code1(point.getPoint_code()); |
|
|
//重算点位时把点位占用,防止发起重复任务
|
|
|
// //重算点位时把点位占用,防止发起重复任务
|
|
|
point.setIng_task_code(schBaseTask.getTask_code()); |
|
|
// point.setIng_task_code(schBaseTask.getTask_code());
|
|
|
//空固化架区别于组盘,任务完成后再扣除库存
|
|
|
// //空固化架区别于组盘,任务完成后再扣除库存
|
|
|
// point.setVehicle_qty(point.getVehicle_qty() - 1);
|
|
|
//// point.setVehicle_qty(point.getVehicle_qty() - 1);
|
|
|
pointService.update(point); |
|
|
// pointService.update(point);
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |