Merge branch 'dev-lwl/order' into test
This commit is contained in:
commit
bc1163e806
|
@ -285,7 +285,7 @@ func (m *Mysql) GetOrderCnt(ctx *gin.Context, tx *sqlx.Tx, mid, st, et int64, or
|
||||||
err = tx.GetContext(ctx, &s, sqlStr, args...)
|
err = tx.GetContext(ctx, &s, sqlStr, args...)
|
||||||
} else {
|
} else {
|
||||||
db := m.getDBVas()
|
db := m.getDBVas()
|
||||||
err = db.SelectContext(ctx, &s, sqlStr, args...)
|
err = db.GetContext(ctx, &s, sqlStr, args...)
|
||||||
}
|
}
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
return 0, nil
|
return 0, nil
|
||||||
|
|
Loading…
Reference in New Issue