diff --git a/business/api/order.go b/business/api/order.go index 08fbe68..6a4774c 100644 --- a/business/api/order.go +++ b/business/api/order.go @@ -89,6 +89,7 @@ func (p DefParty) orderCreate() web_iris.Party { OrderId: orderId, Uid: headerBaseInfo.Uid, OrderStatus: 1, + PayType: 1, ServiceTime: orderCreateRequest.ServiceTime, ServiceAddrId: orderCreateRequest.ServiceAddrId, ServiceRemark: "", @@ -157,6 +158,7 @@ func (p DefParty) orderCreate() web_iris.Party { } db4 = tx.Model(&userInfo).Updates(&updateValues) orderMain.PayDiscount = userInfo.Discount + orderMain.PayType = 3 for index := range orderSubList { orderSubList[index].PayType = 3 } diff --git a/business/models/dataModel.go b/business/models/dataModel.go index d094f4f..f4d4a80 100644 --- a/business/models/dataModel.go +++ b/business/models/dataModel.go @@ -132,6 +132,7 @@ type OrderMain struct { DispatchStatus int `gorm:"default:0" json:"dispatchStatus"` //派单状态 0未派单 1已派单 PayTotalAmount int `json:"payTotalAmount"` //支付总金额 PayDiscount int `gorm:"default:0" json:"payDiscount"` //支付折扣 + PayType int `gorm:"default:1" json:"payType"` //支付方式 1线下 2线上 3会员余额 } // OrderSub 子订单