This commit is contained in:
lwl0608 2024-05-15 19:12:22 +08:00
parent 534fe16e05
commit 9b8b37d5e1
1 changed files with 1 additions and 1 deletions

View File

@ -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...)
} else {
db := m.getDBVas()
err = db.SelectContext(ctx, &s, sqlStr, args...)
err = db.GetContext(ctx, &s, sqlStr, args...)
}
if err == sql.ErrNoRows {
return 0, nil