折扣砂站排除藕山

dev
徐杰盟 2023-12-22 15:19:05 +08:00
parent eb34a0cf7d
commit 6410ff6aef
1 changed files with 2 additions and 2 deletions

View File

@ -731,7 +731,7 @@ public class OrderTempSyncService {
// 根据客户消息判断是否需要打折
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));
}
@ -1129,7 +1129,7 @@ public class OrderTempSyncService {
// 根据客户消息判断是否需要打折
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));
}