he2802 1 year ago
parent
commit
5087888fb6

+ 3 - 3
zhongzheng-system/src/main/resources/mapper/modules/top/TopOrderAcceptanceMapper.xml

@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 AND acceptance_id IN (SELECT acceptance_id FROM top_order_acceptance_rel WHERE `status` = 1 AND order_sn = #{orderSn})
             </if>
             <if test="orderClient != null and orderClient != ''">
-                AND order_client = #{orderClient}
+                AND order_client like CONCAT('%',#{orderClient},'%')
             </if>
             <if test="incomeStartTime != null and incomeStartTime != ''">
                 AND income_time <![CDATA[ >= ]]> #{incomeStartTime}
@@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 AND t.create_no = #{createNo}
             </if>
             <if test="purchaseOrg != null and purchaseOrg != ''">
-                AND t.purchase_org = #{purchaseOrg}
+                AND t.purchase_org like CONCAT('%',#{purchaseOrg},'%')
             </if>
             <if test="userKey != null and userKey != ''">
                 AND (
@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 tog.order_sn = t.order_sn
                 AND tog.`status` = 1
                 AND tog.check_status = 1
-                AND ( tog.user_name = #{userKey} OR tog.user_card = #{userKey,typeHandler=com.zhongzheng.common.type.EncryptHandler} )) > 0
+                AND ( tog.user_name like CONCAT('%',#{userKey},'%') OR tog.user_card = #{userKey,typeHandler=com.zhongzheng.common.type.EncryptHandler} )) > 0
             </if>
             ORDER BY t.create_time DESC
     </select>