Merge branch 'dev_lwl' into test

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

View File

@ -1291,8 +1291,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}