fix
This commit is contained in:
parent
8660fcf986
commit
6b73807a4e
|
@ -392,7 +392,7 @@ func (m *Mysql) Get(ctx *gin.Context, tx *sqlx.Tx, id string) (order *dbstruct.C
|
|||
// 待添加微信的订单
|
||||
func (m *Mysql) GetWaitWechatAddCoinOrders(ctx *gin.Context, tx *sqlx.Tx, mid int64, statusList []int32, offset, limit int) (list []*dbstruct.CoinOrder, err error) {
|
||||
list = make([]*dbstruct.CoinOrder, 0)
|
||||
sqlStr := fmt.Sprintf("select * from %s where uid=? and product_id=? and order_status in (%s) limit ? offset ?", util.Convert2SqlArr(statusList), TableCoinOrder)
|
||||
sqlStr := fmt.Sprintf("select * from %s where uid=? and product_id=? and order_status in (%s) limit ? offset ?", TableCoinOrder, util.Convert2SqlArr(statusList))
|
||||
if tx != nil {
|
||||
err = tx.SelectContext(ctx, &list, sqlStr, mid, dbstruct.ProductIdContactWechat, limit, offset)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue