rev:找相同规格木箱优化

This commit is contained in:
2024-08-03 10:46:52 +08:00
parent 00c7fe7ae6
commit 79518224d3
2 changed files with 4 additions and 2 deletions

View File

@@ -463,6 +463,7 @@ public class InBoxManageServiceImpl implements InBoxManageService {
&& row.getDoubleValue("box_width") == jsonParam.getDoubleValue("box_width")
&& row.getDoubleValue("box_high") == jsonParam.getDoubleValue("box_high")
&& row.getString("lock_type").equals(IOSEnum.LOCK_TYPE.code("未锁定"))
&& row.getString("is_packing").equals(IOSEnum.IS_NOTANDYES.code(""))
&& ObjectUtil.isNotEmpty(row.getString("storagevehicle_code"))
)
.collect(Collectors.toList());

View File

@@ -231,10 +231,11 @@
attr.*,
box.box_length,
box.box_width,
box.box_high
box.box_high,
box.is_packing
FROM
st_ivt_structattr attr
LEFT JOIN bst_ivt_boxinfo box ON box.box_no = attr.storagevehicle_code AND box.is_packing = '0'
LEFT JOIN bst_ivt_boxinfo box ON box.box_no = attr.storagevehicle_code
WHERE
attr.is_used = '1'
AND attr.is_delete = '0'