查询问题

This commit is contained in:
2025-12-18 14:10:44 +08:00
parent af3abe6dfb
commit 6547768b34
3 changed files with 9 additions and 11 deletions

View File

@@ -20,13 +20,11 @@
<if test="param.groupOrderNo != null">
AND detail.group_order_no = #{param.groupOrderNo}
</if>
<if test="param.status != null">
<if test="param.status == '退款'">
AND (detail.STATUS = '退款中' or detail.STATUS = '已退款')
</if>
<if test="param.status != '退款'">
AND detail.STATUS = #{param.status}
</if>
<if test='param.status == "退款"'>
AND (detail.STATUS = '退款中' or detail.STATUS = '退款')
</if>
<if test='param.status != "退款"'>
AND detail.STATUS = #{param.status}
</if>
<if test="param.userId != null">
AND detail.user_id = #{param.userId}
@@ -37,7 +35,6 @@
<if test="param.verifyStartTime != null and param.verifyEndTime != null ">
and detail.verify_time BETWEEN #{param.verifyStartTime} and #{param.verifyEndTime}
</if>
order by detail.create_time desc
</select>
<select id="getGbOrderPage" resultType="com.czg.order.vo.GbOrderDetailVO">