From 9b8b37d5e1f652af672bc7b3dbde66c02f6703df Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Wed, 15 May 2024 19:12:22 +0800 Subject: [PATCH] fix --- app/mix/dao/mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/dao/mysql.go b/app/mix/dao/mysql.go index 903df2f0..fc2d1f26 100644 --- a/app/mix/dao/mysql.go +++ b/app/mix/dao/mysql.go @@ -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