aa
This commit is contained in:
@@ -2443,16 +2443,16 @@ func CreateStoreAcctOrder(ctx *jxcontext.Context, orderType, storeID, price int)
|
|||||||
dao.CreateEntity(db, storeAcct)
|
dao.CreateEntity(db, storeAcct)
|
||||||
}
|
}
|
||||||
|
|
||||||
order := &model.GoodsOrder{
|
order := &model.StoreAcctOrder{
|
||||||
VendorOrderID: utils.Int64ToStr(jxutils.GenOrderNo()),
|
VendorOrderID: utils.Int64ToStr(jxutils.GenOrderNo()),
|
||||||
UserID: ctx.GetUserID(),
|
UserID: ctx.GetUserID(),
|
||||||
StoreID: storeID,
|
StoreID: storeID,
|
||||||
OrderType: orderType,
|
OrderType: orderType,
|
||||||
Status: model.OrderStatusWait4Pay,
|
Status: model.OrderStatusWait4Pay,
|
||||||
ActualPayPrice: int64(price),
|
ActualPayPrice: price,
|
||||||
OrderCreatedAt: time.Now(),
|
|
||||||
VendorID: model.VendorIDJX,
|
VendorID: model.VendorIDJX,
|
||||||
}
|
}
|
||||||
|
dao.WrapAddIDCULEntity(order, ctx.GetUserName())
|
||||||
dao.Begin(db)
|
dao.Begin(db)
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user