feat(后台管理):,优化文件上传显示条件筛选等功能
This commit is contained in:
@@ -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>
|
||||
|
||||
<!-- 动态获取参数采用备参 -->
|
||||
|
||||
Reference in New Issue
Block a user