ruqinhu před 5 roky
rodič
revize
14383b30e8

+ 5 - 1
src/main/resources/mybatis/mapper/customer/CustomerInfoBasicDao.xml

@@ -225,7 +225,11 @@
             </foreach>
         </if>
         <if test="fb_customer_phone != null and fb_customer_phone !=''">
-            and fb_customer_phone like "%"#{fb_customer_phone,jdbcType=VARCHAR}"%"
+            and
+            ( fb_customer_phone like "%"#{fb_customer_phone,jdbcType=VARCHAR}"%"
+                                or
+              fb_customer_name like "%"#{fb_customer_phone,jdbcType=VARCHAR}"%"
+            )
         </if>
         <if test="branche_name != null ">
             and branche_name in

+ 1 - 1
src/main/resources/mybatis/mapper/customer/CustomerInfoFeedbackMapper.xml

@@ -50,7 +50,7 @@
             </foreach>
         </if>
         <if test="fb_customer_phone != null and fb_customer_phone !=''">
-            and fb_customer_phone like "%"#{fb_customer_phone,jdbcType=VARCHAR}"%"
+            and ( fb_customer_phone like "%"#{fb_customer_phone,jdbcType=VARCHAR}"%" or fb_customer_name like "%"#{fb_customer_phone,jdbcType=VARCHAR}"%" )
         </if>
         <if test="branche_name != null ">
             and branche_name in