折扣砂站排除藕山
parent
eb34a0cf7d
commit
6410ff6aef
|
|
@ -731,7 +731,7 @@ public class OrderTempSyncService {
|
||||||
|
|
||||||
// 根据客户消息判断是否需要打折
|
// 根据客户消息判断是否需要打折
|
||||||
CustomerDiscount customerDiscount = CustomerDiscountService.me.getDiscountByCustomerId(customer.getId()); // 预付费结算
|
CustomerDiscount customerDiscount = CustomerDiscountService.me.getDiscountByCustomerId(customer.getId()); // 预付费结算
|
||||||
if (Objects.nonNull(customerDiscount) && Objects.nonNull(customerDiscount.getDiscount())){
|
if (Objects.nonNull(customerDiscount) && Objects.nonNull(customerDiscount.getDiscount()) && 12 != transport.getSupermarketId()){
|
||||||
net_weight = net_weight.multiply(BigDecimal.valueOf(customerDiscount.getDiscount()/100));
|
net_weight = net_weight.multiply(BigDecimal.valueOf(customerDiscount.getDiscount()/100));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1129,7 +1129,7 @@ public class OrderTempSyncService {
|
||||||
|
|
||||||
// 根据客户消息判断是否需要打折
|
// 根据客户消息判断是否需要打折
|
||||||
CustomerDiscount customerDiscount = CustomerDiscountService.me.getDiscountByCustomerId(customer.getId()); // 预付费结算
|
CustomerDiscount customerDiscount = CustomerDiscountService.me.getDiscountByCustomerId(customer.getId()); // 预付费结算
|
||||||
if (Objects.nonNull(customerDiscount) && Objects.nonNull(customerDiscount.getDiscount())){
|
if (Objects.nonNull(customerDiscount) && Objects.nonNull(customerDiscount.getDiscount())&& 12 != transport.getSupermarketId()){
|
||||||
net_weight = net_weight.multiply(BigDecimal.valueOf(customerDiscount.getDiscount()/100));
|
net_weight = net_weight.multiply(BigDecimal.valueOf(customerDiscount.getDiscount()/100));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue