Commit 41da7521 by ping.wu

计算金额调整

parent 98af42d6
......@@ -489,16 +489,16 @@ public class PointsMallOrderServiceImpl implements PointsMallOrderService {
request.setPayChannelName("储值卡支付");
}
//积分价格
Integer integralPrice = productBean.getIntegralPrice() == null ? 0 : productBean.getIntegralPrice();
// Integer integralPrice = productBean.getIntegralPrice() == null ? 0 : productBean.getIntegralPrice();
//现金价格(分)
Integer cashPrice = productBean.getCashPrice() == null ? 0 : productBean.getCashPrice();
Integer settlementAmount = integralPrice + cashPrice;
// Integer settlementAmount = integralPrice + cashPrice;
//订单原始金额,单位分
//用户在界面上看到的支付金额
request.setSettlementAmount(settlementAmount.longValue());
request.setSettlementAmount(cashPrice.longValue());
//实际支付现金金额,扣除支付自生优惠,单位分`
request.setActualPayAmount(cashPrice.longValue());
request.setOriginalAmount(settlementAmount.longValue());
request.setOriginalAmount(cashPrice.longValue());
request.setOrderType(OrderType.GENERAL_DINE_IN.getIndex());
//商品信息赋值
OrderItemCreateReq orderItemCreateReq = convent2OrderItemCreateReq(productBean, partnerId, skuId, active);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment