消费统计时间来源调整

This commit is contained in:
hejiayang
2026-01-29 09:24:05 +08:00
parent f2d53786c2
commit 5307f30fd8
@@ -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,