添加后台订单筛选

This commit is contained in:
2025-06-10 15:13:02 +08:00
parent a84b38dab5
commit cf9802f9ec

View File

@ -306,6 +306,14 @@
<if test="endCancelTime!= null ">
and cancel_at &lt;= #{endCancelTime}
</if>
<if test="type != null">
<if test="type &lt; 0">
and o.type = #{type}
</if>
<if test="type &gt;= 0">
and o.id in (select order_id from order_item where goods_type = #{type})
</if>
</if>
</where>
order by o.create_at desc
</select>