This commit is contained in:
苏尹岚
2021-02-24 17:01:19 +08:00
parent 70a95b1de0
commit 6b77f9f7c9
3 changed files with 13 additions and 1 deletions

View File

@@ -482,6 +482,14 @@ func (v *StoreCoupons) TableIndex() [][]string {
}
}
type AcctOrder struct {
ID int64 `orm:"column(id)" json:"id"`
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
StoreID int `orm:"column(store_id)" json:"storeID"`
UserID string `orm:"column(user_id);size(48);index" json:"userID"`
}
// 判断是否是购买平台自有物流
// 对于京东,饿百来说,就是其自有的物流,对于微商城来说,是达达
func IsWaybillPlatformOwn(bill *Waybill) bool {

View File

@@ -2430,3 +2430,7 @@ func RefreshCouponsStatus(ctx *jxcontext.Context) (err error) {
task.GetID()
return err
}
func CreateStoreAcctOrder(ctx *jxcontext.Context, orderType, storeID, price int) (err error) {
return err
}

View File

@@ -372,7 +372,6 @@ func (c *JxOrderController) ReceiveCoupons() {
// @Title 创建门店账户订单
// @Description 创建门店账户订单
// @Param token header string true "认证token"
// @Param type formData int true "支付类型/账单类型"
// @Param orderType formData int true "订单类型1为账户充值"
// @Param storeID formData int true "门店ID"
// @Param price formData int true "支付金额"
@@ -381,6 +380,7 @@ func (c *JxOrderController) ReceiveCoupons() {
// @router /CreateStoreAcctOrder [post]
func (c *JxOrderController) CreateStoreAcctOrder() {
c.callCreateStoreAcctOrder(func(params *tJxorderCreateStoreAcctOrderParams) (retVal interface{}, errCode string, err error) {
localjx.CreateStoreAcctOrder(params.Ctx, params.OrderType, params.StoreID, params.Price)
return retVal, "", err
})
}