查询订单列表的状态字段改成列表

This commit is contained in:
2025-07-31 23:59:25 +08:00
parent dba67c50a2
commit 6d0b22c4a5
6 changed files with 25 additions and 12 deletions

View File

@ -43,8 +43,11 @@
<if test="storeId != null">
and o.store_id = #{storeId}
</if>
<if test="orderStatus != null and orderStatus!= ''">
and o.order_status = #{orderStatus}
<if test="orderStatusList != null and orderStatusList.size() > 0">
and o.order_status in
<foreach collection="orderStatusList" item="orderStatus" open="(" separator="," close=")">
#{orderStatus}
</foreach>
</if>
</where>
order by o.update_time desc