都换成pay_at

This commit is contained in:
2025-08-01 15:14:39 +08:00
parent 68df668c00
commit 9e92be78ff

View File

@@ -65,10 +65,10 @@
from `order`
where scenic_id = #{scenicId}
<if test="startTime!= null">
and create_at >= #{startTime}
and pay_at >= #{startTime}
</if>
<if test="endTime!= null">
and create_at &lt;= #{endTime}
and pay_at &lt;= #{endTime}
</if>
group by member_id
)a
@@ -251,24 +251,24 @@
select count(1) as count
from `order`
where
pay_at is not null and scenic_id = #{scenicId}
(status = 1 or status = 2) and scenic_id = #{scenicId}
<if test="startTime!= null">
and create_at >= #{startTime}
and pay_at >= #{startTime}
</if>
<if test="endTime!= null">
and create_at &lt;= #{endTime}
and pay_at &lt;= #{endTime}
</if>
</select>
<select id="countRefundOfOrder" resultType="java.lang.Integer">
select count(1) as count
from `order`
where
refund_status = 1 and scenic_id = #{scenicId}
refund_status = 1 and scenic_id = #{scenicId}
<if test="startTime!= null">
and create_at >= #{startTime}
and refund_at >= #{startTime}
</if>
<if test="endTime!= null">
and create_at &lt;= #{endTime}
and refund_at &lt;= #{endTime}
</if>
</select>
<select id="countRefundAmount" resultType="java.math.BigDecimal">