Merge branch 'dev_lwl'

This commit is contained in:
lwl0608 2024-07-01 17:07:44 +08:00
commit 8d170ef8ef
1 changed files with 2 additions and 2 deletions

View File

@ -1288,8 +1288,8 @@ func (m *Mysql) GetTodayIncome(ctx *gin.Context, tx *sqlx.Tx, mid int64) (int64,
var (
err error
s = S{}
et = util.GetTodayZeroTime().Unix()
st = et - 86400
st = util.GetTodayZeroTime().Unix()
et = st + 86400
)
sqlStr := fmt.Sprintf("select sum(`change`) as income from %s where mid=? and ct>=? and ct<?", TableConsumeHistoryIncome)
args := []any{mid, st, et}