fix(订单中心):完善订单查询逻辑,新增素材上传中的订单数据筛选逻辑

This commit is contained in:
2025-07-18 14:48:25 +08:00
parent 68925a4ee4
commit 61e218c94d
2 changed files with 7 additions and 3 deletions
@@ -23,8 +23,11 @@
<!-- 动态获取参数采用备参 -->
<select id="findListByUser" resultType="com.central.order.model.Order">
select id,order_no,tourism_id,device_sn,workspace_id,code_id,user_id,order_amount,order_status,create_time,update_time from orders t WHERE t.user_id = #{param2.userId}
<if test="param2.orderStatus != null">
and t.order_status = #{param2.orderStatus}
<if test="param2.orderStatusList != null and param2.orderStatusList.size() > 0">
and t.order_status in
<foreach collection="param2.orderStatusList" item="status" open="(" separator="," close=")">
#{status}
</foreach>
</if>
ORDER BY id DESC
</select>