fix(订单中心):新增支付类型为第三方渠道
This commit is contained in:
@@ -38,7 +38,7 @@ public class Order extends SuperEntity {
|
||||
@Schema(description = "订单状态")
|
||||
private Integer orderStatus;
|
||||
|
||||
@Schema(description = "支付类型(1:微信支付,2:优惠券支付)")
|
||||
@Schema(description = "支付类型(1:微信支付,2:优惠券支付, 3: 第三方聚到核销)")
|
||||
private Integer payType;
|
||||
|
||||
private Date payTime;
|
||||
|
||||
+6
-1
@@ -102,7 +102,12 @@ public class OrderServiceImpl extends SuperServiceImpl<OrderMapper, Order> imple
|
||||
// 创建订单,初始状态为"待支付"
|
||||
@Override
|
||||
public boolean createOrder(Order order) {
|
||||
order.setOrderStatus(OrderStatus.UNPAID.getId());
|
||||
// payType=3 视为已支付,否则为待支付
|
||||
if (order.getPayType() != null && order.getPayType() == 3) {
|
||||
order.setOrderStatus(OrderStatus.PAID.getId());
|
||||
} else {
|
||||
order.setOrderStatus(OrderStatus.UNPAID.getId());
|
||||
}
|
||||
String orderNo = generateOrderNumber(order.getTourismId());
|
||||
order.setOrderNo(orderNo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user