|
|
@ -194,7 +194,9 @@ public class BPSLTask extends AbstractTask { |
|
|
|
} |
|
|
|
startPointObj.setVehicle_code(vehicle_code.toString()); |
|
|
|
} |
|
|
|
if (!startPointObj.getPoint_code().startsWith("ZJBDJW")) { |
|
|
|
startPointObj.setVehicle_qty(startPointObj.getVehicle_qty() - 1); |
|
|
|
} |
|
|
|
startPointObj.setIng_task_code(""); |
|
|
|
startPointObj.setUpdate_time(DateUtil.now()); |
|
|
|
pointService.updateById(startPointObj); |
|
|
@ -214,7 +216,9 @@ public class BPSLTask extends AbstractTask { |
|
|
|
// 起点解锁
|
|
|
|
if (ObjectUtil.isNotEmpty(startPointObj)) { |
|
|
|
startPointObj.setIng_task_code(""); |
|
|
|
// startPointObj.setVehicle_qty(startPointObj.getVehicle_qty()+1);
|
|
|
|
if (startPointObj.getPoint_code().startsWith("ZJBDJW")) { |
|
|
|
startPointObj.setVehicle_qty(startPointObj.getVehicle_qty() + 1); |
|
|
|
} |
|
|
|
pointService.update(endPointObj); |
|
|
|
} |
|
|
|
taskObj.setRemark("任务取消"); |
|
|
@ -235,7 +239,7 @@ public class BPSLTask extends AbstractTask { |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void feedbackTaskState(JSONObject param,SchBaseTask schBaseTask, BaseResponse result) { |
|
|
|
//todo 重算最优点
|
|
|
|
//重算最优点
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(schBaseTask.getExt_group_data()); |
|
|
|
SchBasePoint point = this.findNextPoint(jsonObject,schBaseTask); |
|
|
|
//正极板现在不堆叠
|
|
|
@ -246,8 +250,10 @@ public class BPSLTask extends AbstractTask { |
|
|
|
} |
|
|
|
//重算点位时把点位占用
|
|
|
|
point.setIng_task_code(schBaseTask.getTask_code()); |
|
|
|
// point.setVehicle_qty(point.getVehicle_qty() - 1);
|
|
|
|
// point.setVehicle_type(materialType);
|
|
|
|
//如果是正极板对接位则直接减库存
|
|
|
|
if ((point.getPoint_code().startsWith("ZJBDJW"))) { |
|
|
|
point.setVehicle_qty(point.getVehicle_qty() - 1); |
|
|
|
} |
|
|
|
pointService.update(point); |
|
|
|
} |
|
|
|
} |
|
|
|