fix:完善提示
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user