Browse Source

2024/12/05

master
qiezi 2 years ago
parent
commit
d9b05b90fa
  1. 2
      src/main/java/com/spring/modules/shipment/service/impl/ShipmentRollServiceImpl.java

2
src/main/java/com/spring/modules/shipment/service/impl/ShipmentRollServiceImpl.java

@ -133,7 +133,7 @@ public class ShipmentRollServiceImpl extends ServiceImpl<ShipmentRollMapper, Shi
//.eq(ShipmentRoll::getBoxNo, shipmentRollVo.getBoxNo()) //.eq(ShipmentRoll::getBoxNo, shipmentRollVo.getBoxNo())
.eq(ShipmentRoll::getSite, shipmentRollVo.getSite()).count(); .eq(ShipmentRoll::getSite, shipmentRollVo.getSite()).count();
BigDecimal needRollNum = num.subtract(new BigDecimal(count)); BigDecimal needRollNum = num.subtract(new BigDecimal(count));
if (BigDecimal.ZERO.compareTo(needRollNum) <= 0){
if (BigDecimal.ZERO.compareTo(needRollNum) == 0){
throw new RuntimeException("该物料已满足发货数量,无法再次添加!"); throw new RuntimeException("该物料已满足发货数量,无法再次添加!");
} }
log.info("needNum:{}",needRollNum); log.info("needNum:{}",needRollNum);

Loading…
Cancel
Save