rev:1.申请发货任务优化2.手持出库扫码优化
This commit is contained in:
@@ -399,6 +399,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
|
||||
}
|
||||
if (type.equals("4")) {
|
||||
CutConveyorTask cutConveyorTask = new CutConveyorTask();
|
||||
|
||||
//查询该木箱对应的包装关系
|
||||
JSONObject sub_jo = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("package_box_sn = '" + vehicle_code + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(sub_jo)) {
|
||||
@@ -480,6 +482,11 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
JSONArray pointArr = 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' and IFNULL(vehicle_code,'') = '' and is_used = '1' order by out_order_seq ASC").getResultJSONArray(0);
|
||||
if (pointArr.size() == flag) {
|
||||
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,layer_num").uniqueResult(0);
|
||||
|
||||
if (cutConveyorTask.isSingleTask(jsonNewRow.getString("point_code"))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
point_code = jsonNewRow.getString("point_code");
|
||||
break;
|
||||
}
|
||||
@@ -499,6 +506,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
// 堵住则判断下一个
|
||||
continue;
|
||||
} else {
|
||||
if (cutConveyorTask.isSingleTask(json.getString("point_code"))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 未堵住: 跳出循环
|
||||
point_code = json.getString("point_code");
|
||||
break;
|
||||
@@ -527,6 +538,11 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
JSONArray pointArr = 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' and IFNULL(vehicle_code,'') = '' and is_used = '1' order by out_order_seq ASC").getResultJSONArray(0);
|
||||
if (pointArr.size() == flag) {
|
||||
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,layer_num").uniqueResult(0);
|
||||
|
||||
if (cutConveyorTask.isSingleTask(jsonNewRow.getString("point_code"))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
point_code = jsonNewRow.getString("point_code");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class ProductionOutServiceImpl implements ProductionOutService {
|
||||
String box_no = whereJson.getString("box_no");
|
||||
if (ObjectUtil.isEmpty(box_no)) throw new BadRequestException("木箱不能为空");
|
||||
|
||||
JSONObject jsonPoint = pointTab.query("vehicle_code = '" + box_no + "' and is_delete = '0' and is_used = '1'").uniqueResult(0);
|
||||
JSONObject jsonPoint = pointTab.query("vehicle_code = '" + box_no + "' and is_delete = '0' and is_used = '1' and point_type = '9'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isEmpty(jsonPoint)) {
|
||||
throw new BadRequestException("请输入正确的木箱或查看点位是否存在");
|
||||
|
||||
Reference in New Issue
Block a user