fix:完善提示
This commit is contained in:
@@ -701,6 +701,9 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
|||||||
|
|
||||||
// 查询子卷包装关系
|
// 查询子卷包装关系
|
||||||
JSONObject jsonSub = subTab.query("package_box_sn = '" + box_no + "'").uniqueResult(0);
|
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");
|
double box_weight = jsonSub.getDoubleValue("box_weight");
|
||||||
|
|
||||||
if (NumberUtil.sub(box_weight, weight_sys) <= weight_now && NumberUtil.add(box_weight, weight_sys) >= weight_now) {
|
if (NumberUtil.sub(box_weight, weight_sys) <= weight_now && NumberUtil.add(box_weight, weight_sys) >= weight_now) {
|
||||||
|
|||||||
Reference in New Issue
Block a user