Browse Source

feat(all): 修改结算配送费逻辑

1 修改结算结算报错问题
visual
zhaoqiaobo 5 months ago
parent
commit
157c4fdbbc
  1. 5
      blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/listener/mq/WaybillCheckListener.java

5
blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/listener/mq/WaybillCheckListener.java

@ -1,6 +1,7 @@
package com.logpm.statistics.listener.mq;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.logpm.basicdata.feign.IBasicdataWarehouseClient;
@ -732,7 +733,9 @@ public class WaybillCheckListener {
distributionPackageEntity.setDeliveryChargeType(systemDeliveryChargeType);
BigDecimal systemDeliveryPrice = warehouseWayBillDetail.getDeliveryPrice();
if(ObjectUtil.isEmpty(systemDeliveryPrice)){
systemDeliveryPrice = BigDecimal.ZERO;
}
if (systemDeliveryChargeType == 1) {
distributionPackageEntity.setSystemDeliveryFee(systemDeliveryPrice.multiply(BigDecimal.ONE));
} else if (systemDeliveryChargeType == 2) {

Loading…
Cancel
Save