fix
This commit is contained in:
parent
52dc387455
commit
9c5d145128
|
@ -477,7 +477,7 @@ func (m *Mysql) GetZoneMemberCnt(ctx *gin.Context, tx *sqlx.Tx, zid int64, memTy
|
||||||
err = tx.GetContext(ctx, &cntSt, sqlStr, args...)
|
err = tx.GetContext(ctx, &cntSt, sqlStr, args...)
|
||||||
} else {
|
} else {
|
||||||
db := m.getDBVas()
|
db := m.getDBVas()
|
||||||
err = db.SelectContext(ctx, &cntSt, sqlStr, args...)
|
err = db.GetContext(ctx, &cntSt, sqlStr, args...)
|
||||||
}
|
}
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
err = nil
|
err = nil
|
||||||
|
|
Loading…
Reference in New Issue