代码更新
This commit is contained in:
@@ -399,7 +399,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
if (ObjectUtil.isEmpty(point_jo)) {
|
if (ObjectUtil.isEmpty(point_jo)) {
|
||||||
throw new BadRequestException("未查询到相同销售订单的放货区点位或空的一排!");
|
throw new BadRequestException("未查询到相同销售订单的放货区点位或空的一排!");
|
||||||
} else {
|
} else {
|
||||||
JSONObject jsonNewRow = WQLObject.getWQLObject("sch_base_point").query("row_num = '" + point_jo.getString("row_num") + "' AND point_type ='9' AND is_delete = '0' order by out_order_seq ASC").uniqueResult(0);
|
JSONObject jsonNewRow = WQLObject.getWQLObject("sch_base_point").query("row_num = '" + point_jo.getString("row_num") + "' AND point_type ='9' AND is_delete = '0' and lock_type = '1' order by out_order_seq ASC").uniqueResult(0);
|
||||||
point_code = jsonNewRow.getString("point_code");
|
point_code = jsonNewRow.getString("point_code");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -430,7 +430,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
if (ObjectUtil.isEmpty(point_jo)) {
|
if (ObjectUtil.isEmpty(point_jo)) {
|
||||||
throw new BadRequestException("未查询到相同销售订单的放货区点位或空的一排!");
|
throw new BadRequestException("未查询到相同销售订单的放货区点位或空的一排!");
|
||||||
} else {
|
} else {
|
||||||
JSONObject jsonNewRow = WQLObject.getWQLObject("sch_base_point").query("row_num = '" + point_jo.getString("row_num") + "' AND point_type ='9' AND is_delete = '0' order by out_order_seq ASC").uniqueResult(0);
|
JSONObject jsonNewRow = WQLObject.getWQLObject("sch_base_point").query("row_num = '" + point_jo.getString("row_num") + "' AND point_type ='9' AND is_delete = '0' and lock_type = '1' order by out_order_seq ASC").uniqueResult(0);
|
||||||
point_code = jsonNewRow.getString("point_code");
|
point_code = jsonNewRow.getString("point_code");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -443,6 +443,11 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
task_jo.put("task_type", "010506");
|
task_jo.put("task_type", "010506");
|
||||||
SendOutTask sendOutTask = new SendOutTask();
|
SendOutTask sendOutTask = new SendOutTask();
|
||||||
sendOutTask.createTask(task_jo);
|
sendOutTask.createTask(task_jo);
|
||||||
|
|
||||||
|
// 锁住点位
|
||||||
|
JSONObject jsonPoint = WQLObject.getWQLObject("sch_base_point").query("point_code = '" + point_code + "'").uniqueResult(0);
|
||||||
|
jsonPoint.put("lock_type", "99");
|
||||||
|
WQLObject.getWQLObject("sch_base_point").update(jsonPoint);
|
||||||
}
|
}
|
||||||
result.put("status", HttpStatus.OK.value());
|
result.put("status", HttpStatus.OK.value());
|
||||||
result.put("message", "下发成功!");
|
result.put("message", "下发成功!");
|
||||||
|
|||||||
@@ -70,6 +70,10 @@ public class SendOutTask extends AbstractAcsTask {
|
|||||||
jsonTask.put("is_delete","1");
|
jsonTask.put("is_delete","1");
|
||||||
jsonTask.put("update_time", DateUtil.now());
|
jsonTask.put("update_time", DateUtil.now());
|
||||||
taskTab.update(jsonTask);
|
taskTab.update(jsonTask);
|
||||||
|
|
||||||
|
JSONObject jsonPoint2 = pointTab.query("point_code = '" + jsonTask.getString("point_code2") + "'").uniqueResult(0);
|
||||||
|
jsonPoint2.put("lock_type", "1");
|
||||||
|
pointTab.update(jsonPoint2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TaskStatusEnum.EXECUTING.getCode().equals(status)) {
|
if (TaskStatusEnum.EXECUTING.getCode().equals(status)) {
|
||||||
@@ -94,6 +98,7 @@ public class SendOutTask extends AbstractAcsTask {
|
|||||||
// 更新暂存区点位状态
|
// 更新暂存区点位状态
|
||||||
JSONObject jsonPoint2 = WQLObject.getWQLObject("sch_base_point").query("point_code = '" + jsonTask.getString("point_code2") + "'").uniqueResult(0);
|
JSONObject jsonPoint2 = WQLObject.getWQLObject("sch_base_point").query("point_code = '" + jsonTask.getString("point_code2") + "'").uniqueResult(0);
|
||||||
jsonPoint2.put("point_status", "2");
|
jsonPoint2.put("point_status", "2");
|
||||||
|
jsonPoint2.put("lock_type", "1");
|
||||||
jsonPoint2.put("vehicle_code", jsonTask.getString("vehicle_code"));
|
jsonPoint2.put("vehicle_code", jsonTask.getString("vehicle_code"));
|
||||||
pointTab.update(jsonPoint2);
|
pointTab.update(jsonPoint2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,6 +70,8 @@
|
|||||||
IFNULL( po.vehicle_code, '' ) = ''
|
IFNULL( po.vehicle_code, '' ) = ''
|
||||||
AND
|
AND
|
||||||
po.point_type = '9'
|
po.point_type = '9'
|
||||||
|
AND
|
||||||
|
po.lock_type = '1'
|
||||||
OPTION 输入.row_num <> ""
|
OPTION 输入.row_num <> ""
|
||||||
po.row_num = 输入.row_num
|
po.row_num = 输入.row_num
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
|||||||
Reference in New Issue
Block a user