代码更新
This commit is contained in:
@@ -97,12 +97,10 @@ public class StructFindUtil {
|
||||
.addParam("area_type", area_type).addParam("vehicle_type", vehicle_type).process().uniqueResult(0);
|
||||
}else
|
||||
// 单口空铁托盘区--->堆叠铁托盘区 查找单口空铁托盘区
|
||||
if (StrUtil.equals("03", area_type)) {
|
||||
if (StrUtil.equals("03", area_type) || StrUtil.equals("04", area_type)) {
|
||||
result = WQL.getWO("QSTRUCT_RUL01").addParam("flag", "1")
|
||||
.addParam("area_type", area_type).addParam("vehicle_type", vehicle_type).process().uniqueResult(0);
|
||||
}
|
||||
|
||||
else {
|
||||
.addParam("area_type", area_type).addParam("vehicle_type", vehicle_type).addParam("point_code", point_code).process().uniqueResult(0);
|
||||
} else {
|
||||
result = WQL.getWO("QSTRUCT_RULE").addParam("flag", "5")
|
||||
.addParam("area_type", area_type).addParam("vehicle_type", vehicle_type)
|
||||
.addParam("point_code", point_code).
|
||||
@@ -143,26 +141,6 @@ public class StructFindUtil {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JSONObject getEmptyMto(JSONObject jsonObject) {
|
||||
String area_type = jsonObject.getString("area_type");
|
||||
String vehicle_type = jsonObject.getString("vehicle_type");
|
||||
if (StrUtil.isEmpty(vehicle_type)) {
|
||||
throw new BadRequestException("木托盘类型不能为空!");
|
||||
}
|
||||
JSONObject result = WQL.getWO("QSTRUCT_RULE").addParam("flag", "5")
|
||||
.addParam("area_type", area_type).addParam("vehicle_type", vehicle_type).process().uniqueResult(0);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static JSONObject getOutCacheStruct() {
|
||||
//找一个可以入库的入窑缓存货位
|
||||
String area_type = "01";
|
||||
String is_full = "1";
|
||||
JSONObject result = WQL.getWO("QSTRUCT_RULE").addParam("flag", "9")
|
||||
.addParam("area_type", area_type)
|
||||
.addParam("is_full", is_full)
|
||||
.process().uniqueResult(0);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#################################################
|
||||
输入.flag TYPEAS s_string
|
||||
输入.workprocedure_id TYPEAS s_string
|
||||
输入.material_id TYPEAS s_string
|
||||
输入.material_id TYPEAS s_string
|
||||
输入.area_type TYPEAS s_string
|
||||
输入.point_code TYPEAS s_string
|
||||
输入.device_id TYPEAS s_string
|
||||
|
||||
Reference in New Issue
Block a user