Browse Source

计费方式字典

xucaiqin 2 years ago
parent
commit
ff2d0aad31

+ 0 - 2
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/service/TransportCommonService.java

@@ -525,8 +525,6 @@ public class TransportCommonService {
                     actualAmount = logisticsOrderDTO.getLoadAmount();
                 } else if (DictEnum.CHARGING_TYPE_2.equals(billingMode)) {
                     actualAmount = logisticsOrderDTO.getUnloadAmount();
-                } else {
-                    throw new BusinessException("单据计费方式错误!");
                 }
                 BigDecimal price = logisticsOrderDTO.getPrice() == null ? new BigDecimal("0.00") : logisticsOrderDTO.getPrice();
                 logisticsOrderDTO.setTaxMoney(actualAmount.multiply(price));

+ 0 - 2
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/service/dubbo/TransportDubboServiceImpl.java

@@ -149,8 +149,6 @@ public class TransportDubboServiceImpl implements TransportDubboService {
                     actualAmount = logisticsOrderDTO.getLoadAmount();
                 } else if (DictEnum.CHARGING_TYPE_2.equals(billingMode)) {
                     actualAmount = logisticsOrderDTO.getUnloadAmount();
-                } else {
-                    throw new BusinessException("单据计费方式错误!");
                 }
                 BigDecimal price = logisticsOrderDTO.getPrice() == null ? new BigDecimal("0.00") : logisticsOrderDTO.getPrice();
                 logisticsOrderDTO.setTaxMoney(actualAmount.multiply(price));