fix
This commit is contained in:
parent
e19471c4bd
commit
8147201960
|
@ -1271,8 +1271,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}
|
||||
|
|
Loading…
Reference in New Issue