提交 f2105248 authored 作者: 刘海泉's avatar 刘海泉

Merge remote-tracking branch 'origin/v20.8_add_sub_weight_20240805' into test

...@@ -2197,7 +2197,9 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -2197,7 +2197,9 @@ public class OrderChildServiceImpl implements OrderChildService {
} }
if (dif.compareTo(BigDecimal.ZERO) != 0) { if (dif.compareTo(BigDecimal.ZERO) != 0) {
BigDecimal orderResidueWeight = orderWeightService.getOrderResidueWeight(orderGoods.getOrderNo()); BigDecimal orderResidueWeight = orderWeightService.getOrderResidueWeight(orderGoods.getOrderNo());
if(orderResidueWeight.compareTo(BigDecimal.ZERO) <= 0){
//增加吨数 && 订单剩余吨数小于等于0 ,则提示吨数不足
if(dif.compareTo(BigDecimal.ZERO) > 0 && orderResidueWeight.compareTo(BigDecimal.ZERO) <= 0){
throw new ServiceSystemException(ORDER_WEIGHT_LACK); throw new ServiceSystemException(ORDER_WEIGHT_LACK);
} }
//运单修改装车吨数,从货单进行扣减 //运单修改装车吨数,从货单进行扣减
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论