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 (
|
var (
|
||||||
err error
|
err error
|
||||||
s = S{}
|
s = S{}
|
||||||
et = util.GetTodayZeroTime().Unix()
|
st = util.GetTodayZeroTime().Unix()
|
||||||
st = et - 86400
|
et = st + 86400
|
||||||
)
|
)
|
||||||
sqlStr := fmt.Sprintf("select sum(`change`) as income from %s where mid=? and ct>=? and ct<?", TableConsumeHistoryIncome)
|
sqlStr := fmt.Sprintf("select sum(`change`) as income from %s where mid=? and ct>=? and ct<?", TableConsumeHistoryIncome)
|
||||||
args := []any{mid, st, et}
|
args := []any{mid, st, et}
|
||||||
|
|
Loading…
Reference in New Issue