霸王餐金额
This commit is contained in:
@@ -1197,6 +1197,13 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
|
||||
if (orderInfo.getCreditBuyerId() != null) {
|
||||
upOrderInfo.setCreditBuyerId(orderInfo.getCreditBuyerId());
|
||||
}
|
||||
if (payType.equals(PayEnums.FREE_PAY)) {
|
||||
if (orderInfo.getDiscountAllAmount() == null) {
|
||||
upOrderInfo.setDiscountAllAmount(orderInfo.getOrderAmount());
|
||||
} else {
|
||||
upOrderInfo.setDiscountAllAmount(orderInfo.getDiscountAllAmount().add(orderInfo.getOrderAmount()));
|
||||
}
|
||||
}
|
||||
if (ObjectUtil.isNotNull(payType)) {
|
||||
upOrderInfo.setPayType(payType.getValue());
|
||||
orderInfo.setPayType(payType.getValue());
|
||||
|
||||
Reference in New Issue
Block a user