fix:完善提示

This commit is contained in:
zhouz
2025-10-10 15:29:53 +08:00
parent 85024f269d
commit b83fda43d2

View File

@@ -701,6 +701,9 @@ public class ProductInstorServiceImpl implements ProductInstorService {
// 查询子卷包装关系
JSONObject jsonSub = subTab.query("package_box_sn = '" + box_no + "'").uniqueResult(0);
if (ObjectUtil.isEmpty(jsonSub)) {
throw new BadRequestException("未查询到木箱【"+box_no+"】对应的包装关系!");
}
double box_weight = jsonSub.getDoubleValue("box_weight");
if (NumberUtil.sub(box_weight, weight_sys) <= weight_now && NumberUtil.add(box_weight, weight_sys) >= weight_now) {