fix:查询木箱信息优化
This commit is contained in:
@@ -2369,20 +2369,17 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JSONObject getBoxInfo(JSONObject param) {
|
public JSONObject getBoxInfo(JSONObject param) {
|
||||||
String device_code = param.getString("device_code");
|
|
||||||
String material_barcode = param.getString("material_barcode");
|
String material_barcode = param.getString("material_barcode");
|
||||||
String vehicle_code = param.getString("vehicle_code");
|
String vehicle_code = param.getString("vehicle_code");
|
||||||
//干燥剂模板
|
//干燥剂模板
|
||||||
String desiccantTemplate = "4";
|
String desiccantTemplate = "4";
|
||||||
//是否开盖
|
//是否开盖
|
||||||
String isUncap = "1";
|
String isUncap = "1";
|
||||||
if (StringUtils.isNotBlank(vehicle_code)) {
|
|
||||||
JSONObject vehicle_info = WQLObject.getWQLObject("md_pb_storagevehicleext").query("storagevehicle_code = '" + material_barcode + "'").uniqueResult(0);
|
JSONObject vehicle_info = WQLObject.getWQLObject("md_pb_storagevehicleext").query("storagevehicle_code = '" + material_barcode + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(vehicle_info)) {
|
if (ObjectUtil.isEmpty(vehicle_info)) {
|
||||||
throw new BadRequestException("未查询到载具号【" + vehicle_code + "】对应的载具信息!");
|
throw new BadRequestException("未查询到载具号【" + vehicle_code + "】对应的载具信息!");
|
||||||
}
|
}
|
||||||
material_barcode = vehicle_info.getString("pcsn");
|
material_barcode = vehicle_info.getString("pcsn");
|
||||||
}
|
|
||||||
// 查询木箱信息
|
// 查询木箱信息
|
||||||
BstIvtBoxinfo boxDao = iBstIvtBoxinfoService.getOne(
|
BstIvtBoxinfo boxDao = iBstIvtBoxinfoService.getOne(
|
||||||
new QueryWrapper<BstIvtBoxinfo>().lambda()
|
new QueryWrapper<BstIvtBoxinfo>().lambda()
|
||||||
|
|||||||
Reference in New Issue
Block a user