Compare commits

...
4 Commits
Author SHA1 Message Date
hejiayang 5307f30fd8 消费统计时间来源调整 2026-01-29 09:24:05 +08:00
hejiayang f2d53786c2 充值记录 ,按照升序排序 2026-01-08 15:40:23 +08:00
hejiayang 712f295d57 Merge remote-tracking branch 'origin/master' 2026-01-07 14:53:36 +08:00
hejiayang e39496cca1 用户余额心跳调整 2026-01-07 14:53:17 +08:00
3 changed files with 15 additions and 8 deletions
@@ -573,11 +573,10 @@
SELECT SELECT
member_id, member_id,
top_up_balance, top_up_balance,
reward_balance, reward_balance
(top_up_balance + reward_balance) AS balance FROM st_client_member_balance
FROM WHERE member_id IN (SELECT id FROM sys_user_sub WHERE update_time > FROM_UNIXTIME(#{timestamp}/1000))
st_client_member_balance OR
WHERE
create_time > FROM_UNIXTIME(#{timestamp} / 1000) create_time > FROM_UNIXTIME(#{timestamp} / 1000)
OR update_time > FROM_UNIXTIME(#{timestamp} / 1000) OR update_time > FROM_UNIXTIME(#{timestamp} / 1000)
OR last_consumption_time > FROM_UNIXTIME(#{timestamp} / 1000) OR last_consumption_time > FROM_UNIXTIME(#{timestamp} / 1000)
@@ -243,7 +243,7 @@
</foreach> </foreach>
</if> </if>
<if test="startDate != '' and startDate != null "> <if test="startDate != '' and startDate != null ">
and eat_day between #{startDate} and #{endDate} and DATE_FORMAT(create_time,'%Y-%m-%d') between #{startDate} and #{endDate}
</if> </if>
) AS totalNum ) AS totalNum
FROM FROM
@@ -259,7 +259,7 @@
</foreach> </foreach>
</if> </if>
<if test="startDate != '' and startDate != null "> <if test="startDate != '' and startDate != null ">
and oi.eat_day between #{startDate} and #{endDate} and DATE_FORMAT(oi.create_time,'%Y-%m-%d') between #{startDate} and #{endDate}
</if> </if>
GROUP BY GROUP BY
oi.canteen_id, oi.canteen_id,
@@ -135,7 +135,15 @@
#{canteenId} #{canteenId}
</foreach> </foreach>
</if> </if>
order by a.create_time desc order by a.create_time
<choose>
<when test="vo.status != null and vo.status == 3 ">
asc
</when>
<otherwise>
desc
</otherwise>
</choose>
</select> </select>
<select id="pageListCount" resultType="java.lang.Long"> <select id="pageListCount" resultType="java.lang.Long">