This commit is contained in:
van
2026-05-07 18:35:40 +08:00
parent 7582868b2c
commit 6fb46cc203
5 changed files with 40 additions and 0 deletions

View File

@@ -71,8 +71,29 @@
<if test="userName != null and userName != ''">and e.user_name like concat('%', #{userName}, '%')</if>
<if test="orderNo != null and orderNo != ''">and e.order_no like concat('%', #{orderNo}, '%')</if>
<if test="orderStatus != null">and e.order_status = #{orderStatus}</if>
<if test="refundStatus != null">and e.refund_status = #{refundStatus}</if>
<if test="orderType != null">and e.order_type = #{orderType}</if>
<if test="shipStatus != null">and e.ship_status = #{shipStatus}</if>
<if test="jdOrderId != null">and e.jd_order_id = #{jdOrderId}</if>
<if test="buyerNick != null and buyerNick != ''">and e.buyer_nick like concat('%', #{buyerNick}, '%')</if>
<if test="goodsTitle != null and goodsTitle != ''">and e.goods_title like concat('%', #{goodsTitle}, '%')</if>
<if test="receiverMobile != null and receiverMobile != ''">and e.receiver_mobile like concat('%', #{receiverMobile}, '%')</if>
<if test="itemId != null">and e.item_id = #{itemId}</if>
<if test="productId != null">and e.product_id = #{productId}</if>
<if test="waybillKeyword != null and waybillKeyword != ''">
and (e.detail_waybill_no like concat('%', #{waybillKeyword}, '%')
or e.local_waybill_no like concat('%', #{waybillKeyword}, '%'))
</if>
<if test="jdRemark != null and jdRemark != ''">and o.remark like concat('%', #{jdRemark}, '%')</if>
<if test="jdThirdPartyOrderNo != null and jdThirdPartyOrderNo != ''">and o.third_party_order_no like concat('%', #{jdThirdPartyOrderNo}, '%')</if>
<if test="modifyTimeBegin != null">and e.modify_time &gt;= #{modifyTimeBegin}</if>
<if test="modifyTimeEnd != null">and e.modify_time &lt;= #{modifyTimeEnd}</if>
<if test="jdLinkFilter != null">
<choose>
<when test="jdLinkFilter == 1">and e.jd_order_id is not null</when>
<when test="jdLinkFilter == 0">and e.jd_order_id is null</when>
</choose>
</if>
</where>
order by e.modify_time desc, e.id desc
</select>