Преглед изворни кода

fix:客户管理客户列表模糊搜索

ly пре 9 месеци
родитељ
комит
6a78c28aaa
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/main/resources/mybatis/business/BizCompanyMapper.xml

+ 2 - 2
src/main/resources/mybatis/business/BizCompanyMapper.xml

@@ -43,8 +43,8 @@
             <if test="contactAddress != null  and contactAddress != ''">AND c.contact_address = #{contactAddress}</if>
             <if test="source != null  and source != ''">AND c.source = #{source}</if>
             <if test="type != null  and type != ''">AND c.type = #{type}</if>
-            <if test="socialCreditCode != null  and socialCreditCode != ''">AND c.social_credit_code =
-                #{socialCreditCode}
+            <if test="socialCreditCode != null  and socialCreditCode != ''">AND c.social_credit_code
+                like concat('%', #{socialCreditCode}, '%')
             </if>
             <if test="mainBusiness != null  and mainBusiness != ''">AND c.main_business = #{mainBusiness}</if>
             <if test="legalRepresentative != null  and legalRepresentative != ''">AND c.legal_representative =