fix:完善提示

This commit is contained in:
zhouz
2025-10-11 09:43:49 +08:00
parent 71ed48f89f
commit 3997b836df

View File

@@ -551,6 +551,10 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
new QueryWrapper<BstIvtBoxinfo>().lambda()
.eq(BstIvtBoxinfo::getBox_no, boxSn)
);
String box_weight = boxDao.getBox_weight();
if (ObjectUtils.isEmpty(box_weight)) {
throw new BadRequestException("木箱重量为空!");
}
//木箱重量
BigDecimal boxWeight = new BigDecimal(boxDao.getBox_weight());
totalWeight = totalWeight.add(boxWeight);