feat(后台管理):,优化文件上传显示条件筛选等功能

This commit is contained in:
2025-03-30 15:49:18 +08:00
parent 57a8951954
commit f3f6ce9c49
16 changed files with 1237 additions and 613 deletions
@@ -3,7 +3,16 @@
<mapper namespace="com.central.order.mapper.OrderFileMapper">
<select id="findList" resultType="com.central.order.model.OrderFile">
select * from order_files t ORDER BY id DESC
SELECT * FROM order_files t
<where>
<if test="orderNo != null and orderNo != ''">
AND t.order_no LIKE CONCAT('%', #{orderNo}, '%')
</if>
<if test="createTime != null and createTime.length == 2">
AND t.create_time BETWEEN #{createTime[0]} AND #{createTime[1]}
</if>
</where>
ORDER BY t.id DESC
</select>
<!-- 动态获取参数采用备参 -->
@@ -4,7 +4,16 @@
<mapper namespace="com.central.order.mapper.OrderMapper">
<select id="findList" resultType="com.central.order.model.Order">
select * from orders t ORDER BY id DESC
select * from orders t
<where>
<if test="p.orderNo != null and p.orderNo != ''">
AND t.order_no LIKE CONCAT('%', #{p.orderNo}, '%')
</if>
<if test="p.orderStatus != null">
AND t.order_status = #{p.orderStatus}
</if>
</where>
ORDER BY t.id DESC
</select>
<!-- 动态获取参数采用备参 -->