Browse Source

fix: 小程序端模糊查询问题;

hanchaolong 2 weeks ago
parent
commit
d2d018e6a7

+ 5 - 0
jd-logistics-modules/jd-logistics-system/src/main/resources/mapper/logistics/BizWaybillOrderMapper.xml

@@ -91,6 +91,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="parentWaybillId != null "> and parent_waybill_id = #{parentWaybillId}</if>
             <if test="invoiceFlag != null  and invoiceFlag != ''"> and invoice_flag = #{invoiceFlag}</if>
             <if test="adjustFlag != null  and adjustFlag != ''"> and adjust_flag = #{adjustFlag}</if>
+            <if test="searchKeyword != null and searchKeyword != ''"> and (external_waybill_no like concat('%', #{searchKeyword}, '%') or
+                sender_name like concat('%', #{searchKeyword}, '%') or
+                sender_phone like concat('%', #{searchKeyword}, '%') or
+                receiver_name like concat('%', #{searchKeyword}, '%') or
+                receiver_phone like concat('%', #{searchKeyword}, '%'))</if>
 
             <!-- 数据范围过滤 -->
             ${params.dataScope}