|
@@ -44,6 +44,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
`order` o
|
|
`order` o
|
|
|
LEFT JOIN order_goods og ON o.oder_sn = og.order_sn
|
|
LEFT JOIN order_goods og ON o.oder_sn = og.order_sn
|
|
|
LEFT JOIN user u on o.user_id = u.user_id
|
|
LEFT JOIN user u on o.user_id = u.user_id
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ 1 = 1
|
|
|
|
|
+ <if test="oderSn != null and oderSn != ''" >
|
|
|
|
|
+ AND o.oder_sn = #{oderSn}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="orderStatus != null and orderStatus != ''" >
|
|
|
|
|
+ AND o.order_status = #{orderStatus}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="nickname != null and nickname != ''" >
|
|
|
|
|
+ AND u.nickname like concat('%', #{nickname}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="telphone != null and telphone != ''" >
|
|
|
|
|
+ AND u.telphone = #{telphone}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="payPrice != null and payPrice != ''" >
|
|
|
|
|
+ AND o.pay_price = #{payPrice}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="startTime != null and startTime != ''" >
|
|
|
|
|
+ AND o.pay_time > #{startTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="endTime != null and endTime != ''" >
|
|
|
|
|
+ AND #{endTime} > o.pay_time
|
|
|
|
|
+ </if>
|
|
|
ORDER BY
|
|
ORDER BY
|
|
|
order_id DESC
|
|
order_id DESC
|
|
|
</select>
|
|
</select>
|