修改3-18问题
This commit is contained in:
@@ -22,7 +22,8 @@ public class OrderParam {
|
|||||||
//使用的积分数
|
//使用的积分数
|
||||||
private Integer useIntegration;
|
private Integer useIntegration;
|
||||||
//支付方式
|
//支付方式
|
||||||
private Integer payType = 1;
|
// private Integer payType = 1;
|
||||||
|
private Integer payType = 0;
|
||||||
private Integer offline;// 0 送货 1 自取
|
private Integer offline;// 0 送货 1 自取
|
||||||
private String lading_mobile; //自取人电话
|
private String lading_mobile; //自取人电话
|
||||||
private String lading_name; //自取人姓名
|
private String lading_name; //自取人姓名
|
||||||
|
|||||||
@@ -2196,10 +2196,10 @@ public class OmsOrderServiceImpl extends ServiceImpl<OmsOrderMapper, OmsOrder> i
|
|||||||
//总金额+运费-促销优惠-优惠券优惠-积分抵扣
|
//总金额+运费-促销优惠-优惠券优惠-积分抵扣
|
||||||
BigDecimal payAmount = order.getTotalAmount()
|
BigDecimal payAmount = order.getTotalAmount()
|
||||||
.add(order.getFreightAmount())
|
.add(order.getFreightAmount())
|
||||||
.subtract(order.getPromotionAmount())
|
/*.subtract(order.getPromotionAmount())*/
|
||||||
.subtract(order.getCouponAmount())
|
.subtract(order.getCouponAmount())
|
||||||
.subtract(order.getIntegrationAmount())
|
/*.subtract(order.getIntegrationAmount())*/;
|
||||||
.subtract(order.getVipAmount());
|
// .subtract(order.getVipAmount());
|
||||||
return payAmount;
|
return payAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user