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