rev:木箱出库

This commit is contained in:
2024-07-25 12:11:53 +08:00
parent 9addae9065
commit 4f267d6e33

View File

@@ -551,20 +551,12 @@ public class OutBoxManageServiceImpl implements OutBoxManageService {
// 载具扩展属性表
WQLObject extTab = WQLObject.getWQLObject("md_pb_storagevehicleext");
BstIvtBoxinfo boxDao = iBstIvtBoxinfoService.getOne(
new QueryWrapper<BstIvtBoxinfo>().lambda()
.eq(BstIvtBoxinfo::getBox_no, jsonObject.getString("storagevehicle_code"))
);
if (ObjectUtil.isEmpty(boxDao)) {
throw new BadRequestException("木箱信息不存在!"+jsonObject.getString("storagevehicle_code"));
}
// 找一个空的仓位
JSONObject paramIn = new JSONObject();
paramIn.put("stor_id", IOSEnum.STOR_ID.code("二期"));
paramIn.put("sect_id", RegionTypeEnum.TWO_BZC01.getId());
paramIn.put("vehicle_type", jsonObject.getString("storagevehicle_type"));
paramIn.put("height", boxDao.getBox_high());
paramIn.put("height", jsonObject.getString("height"));
InBoxManageServiceImpl bean = SpringContextHolder.getBean(InBoxManageServiceImpl.class);
JSONObject jsonAttr = bean.getStruct(paramIn);