fix:入空木箱高度类型兼容,确认下卷提示ACS内容修改
This commit is contained in:
@@ -701,18 +701,27 @@ public class InBoxManageServiceImpl implements InBoxManageService {
|
|||||||
|
|
||||||
JSONArray structArray = new JSONArray();
|
JSONArray structArray = new JSONArray();
|
||||||
|
|
||||||
|
String height = jsonParam.getString("height");
|
||||||
|
if (height.equals("1")) {
|
||||||
|
height = "('1','2','3')";
|
||||||
|
} else if (height.equals("2")) {
|
||||||
|
height = "('2','3')";
|
||||||
|
} else {
|
||||||
|
height = "('3')";
|
||||||
|
}
|
||||||
|
|
||||||
if (ObjectUtil.isEmpty(block_num)) {
|
if (ObjectUtil.isEmpty(block_num)) {
|
||||||
structArray = attrTab.query("IFNULL(storagevehicle_code,'') = '' " +
|
structArray = attrTab.query("IFNULL(storagevehicle_code,'') = '' " +
|
||||||
"AND is_used = '" + IOSEnum.IS_NOTANDYES.code("是") + "' AND is_delete = '" + IOSEnum.IS_NOTANDYES.code("否") + "' " +
|
"AND is_used = '" + IOSEnum.IS_NOTANDYES.code("是") + "' AND is_delete = '" + IOSEnum.IS_NOTANDYES.code("否") + "' " +
|
||||||
"AND storagevehicle_type = '" + jsonParam.getString("vehicle_type") + "'" +
|
"AND storagevehicle_type = '" + jsonParam.getString("vehicle_type") + "'" +
|
||||||
"AND height = '" + jsonParam.getString("height") + "'" +
|
"AND height IN " + height + " " +
|
||||||
"AND lock_type = '" + IOSEnum.LOCK_TYPE.code("未锁定") + "' AND stor_id = '" + jsonParam.getString("stor_id") + "' " +
|
"AND lock_type = '" + IOSEnum.LOCK_TYPE.code("未锁定") + "' AND stor_id = '" + jsonParam.getString("stor_id") + "' " +
|
||||||
"AND sect_id = '" + jsonParam.getString("sect_id") + "'").getResultJSONArray(0);
|
"AND sect_id = '" + jsonParam.getString("sect_id") + "'").getResultJSONArray(0);
|
||||||
} else {
|
} else {
|
||||||
structArray = attrTab.query("IFNULL(storagevehicle_code,'') = '' " +
|
structArray = attrTab.query("IFNULL(storagevehicle_code,'') = '' " +
|
||||||
"AND is_used = '" + IOSEnum.IS_NOTANDYES.code("是") + "' AND is_delete = '" + IOSEnum.IS_NOTANDYES.code("否") + "' " +
|
"AND is_used = '" + IOSEnum.IS_NOTANDYES.code("是") + "' AND is_delete = '" + IOSEnum.IS_NOTANDYES.code("否") + "' " +
|
||||||
"AND storagevehicle_type = '" + jsonParam.getString("vehicle_type") + "'" +
|
"AND storagevehicle_type = '" + jsonParam.getString("vehicle_type") + "'" +
|
||||||
"AND height = '" + jsonParam.getString("height") + "'" +
|
"AND height IN " + height + " " +
|
||||||
"AND lock_type = '" + IOSEnum.LOCK_TYPE.code("未锁定") + "' AND stor_id = '" + jsonParam.getString("stor_id") + "' " +
|
"AND lock_type = '" + IOSEnum.LOCK_TYPE.code("未锁定") + "' AND stor_id = '" + jsonParam.getString("stor_id") + "' " +
|
||||||
"AND sect_id = '" + jsonParam.getString("sect_id") + "' AND block_num = '" + block_num + "'").getResultJSONArray(0);
|
"AND sect_id = '" + jsonParam.getString("sect_id") + "' AND block_num = '" + block_num + "'").getResultJSONArray(0);
|
||||||
}
|
}
|
||||||
@@ -725,6 +734,7 @@ public class InBoxManageServiceImpl implements InBoxManageService {
|
|||||||
|
|
||||||
// 确定巷道:查看每个巷道最小木箱数的巷道,获取最小木箱数的巷道
|
// 确定巷道:查看每个巷道最小木箱数的巷道,获取最小木箱数的巷道
|
||||||
// 不是移库则需要找新巷道
|
// 不是移库则需要找新巷道
|
||||||
|
jsonParam.put("height", height);
|
||||||
if (ObjectUtil.isEmpty(block_num)) {
|
if (ObjectUtil.isEmpty(block_num)) {
|
||||||
block_num = getMinBlock(jsonParam);
|
block_num = getMinBlock(jsonParam);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
输入.stor_id TYPEAS s_string
|
输入.stor_id TYPEAS s_string
|
||||||
输入.sect_id TYPEAS s_string
|
输入.sect_id TYPEAS s_string
|
||||||
输入.block_num TYPEAS s_string
|
输入.block_num TYPEAS s_string
|
||||||
输入.height TYPEAS s_string
|
输入.height TYPEAS f_string
|
||||||
输入.row_num TYPEAS s_string
|
输入.row_num TYPEAS s_string
|
||||||
输入.vehicle_type TYPEAS s_string
|
输入.vehicle_type TYPEAS s_string
|
||||||
输入.box_length TYPEAS s_string
|
输入.box_length TYPEAS s_string
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
AND attr.stor_id = 输入.stor_id
|
AND attr.stor_id = 输入.stor_id
|
||||||
AND attr.sect_id = 输入.sect_id
|
AND attr.sect_id = 输入.sect_id
|
||||||
AND attr.storagevehicle_type = 输入.vehicle_type
|
AND attr.storagevehicle_type = 输入.vehicle_type
|
||||||
AND attr.height = 输入.height
|
AND attr.height IN 输入.height
|
||||||
|
|
||||||
OPTION 输入.not_block <> ""
|
OPTION 输入.not_block <> ""
|
||||||
attr.block_num NOT IN 输入.not_block
|
attr.block_num NOT IN 输入.not_block
|
||||||
@@ -94,10 +94,9 @@
|
|||||||
AND attr.is_delete = '0'
|
AND attr.is_delete = '0'
|
||||||
AND attr.stor_id = 输入.stor_id
|
AND attr.stor_id = 输入.stor_id
|
||||||
AND attr.sect_id = 输入.sect_id
|
AND attr.sect_id = 输入.sect_id
|
||||||
AND attr.height = 输入.height
|
|
||||||
AND IFNULL(attr.storagevehicle_code,'') <> ''
|
AND IFNULL(attr.storagevehicle_code,'') <> ''
|
||||||
AND attr.storagevehicle_type = 输入.vehicle_type
|
AND attr.storagevehicle_type = 输入.vehicle_type
|
||||||
AND attr.height = 输入.height
|
AND attr.height IN 输入.height
|
||||||
AND box.is_packing = '0'
|
AND box.is_packing = '0'
|
||||||
|
|
||||||
OPTION 输入.block_in <> ""
|
OPTION 输入.block_in <> ""
|
||||||
@@ -126,7 +125,7 @@
|
|||||||
AND attr.stor_id = 输入.stor_id
|
AND attr.stor_id = 输入.stor_id
|
||||||
AND attr.sect_id = 输入.sect_id
|
AND attr.sect_id = 输入.sect_id
|
||||||
AND attr.storagevehicle_type = 输入.vehicle_type
|
AND attr.storagevehicle_type = 输入.vehicle_type
|
||||||
AND attr.height = 输入.height
|
AND attr.height IN 输入.height
|
||||||
OPTION 输入.block_num <> ""
|
OPTION 输入.block_num <> ""
|
||||||
attr.block_num = 输入.block_num
|
attr.block_num = 输入.block_num
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
@@ -160,8 +159,8 @@
|
|||||||
attr.row_num = 输入.row_num
|
attr.row_num = 输入.row_num
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
AND attr.storagevehicle_type = 输入.vehicle_type
|
AND attr.storagevehicle_type = 输入.vehicle_type
|
||||||
AND attr.height = 输入.height
|
AND attr.height IN 输入.height
|
||||||
order by attr.col_num DESC,attr.layer_num ASC,attr.zdepth DESC
|
order by attr.layer_num ASC,attr.col_num DESC,attr.zdepth DESC
|
||||||
|
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDQUERY
|
ENDQUERY
|
||||||
@@ -193,7 +192,7 @@
|
|||||||
attr.row_num = 输入.row_num
|
attr.row_num = 输入.row_num
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
AND attr.storagevehicle_type = 输入.vehicle_type
|
AND attr.storagevehicle_type = 输入.vehicle_type
|
||||||
AND attr.height = 输入.height
|
AND attr.height IN 输入.height
|
||||||
|
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDQUERY
|
ENDQUERY
|
||||||
|
|||||||
@@ -574,7 +574,7 @@ public class RawFoilServiceImpl implements RawFoilService {
|
|||||||
JSONObject result = wmsToAcsService.updateTask(paramArr);
|
JSONObject result = wmsToAcsService.updateTask(paramArr);
|
||||||
|
|
||||||
if (!StrUtil.equals(result.getString("status"), "200")) {
|
if (!StrUtil.equals(result.getString("status"), "200")) {
|
||||||
throw new BadRequestException("操作失败:" + result.getString("message "));
|
throw new BadRequestException("操作失败:" + result.getString("errArr"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新工单状态为确认下卷
|
// 更新工单状态为确认下卷
|
||||||
|
|||||||
Reference in New Issue
Block a user