zhangyuewww 3 years ago
parent
commit
8c1d39f36a

+ 2 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/CustomerInfoMapper.xml

@@ -11,7 +11,7 @@
         and delete_flag = '0'
         and delete_flag = '0'
         <if test="searchKeyWord != null and searchKeyWord != ''">
         <if test="searchKeyWord != null and searchKeyWord != ''">
             AND (lower(comp_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
             AND (lower(comp_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
-            OR (lower(customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
+            OR lower(customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))
             OR lower(customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))
         </if>
         </if>
     </select>
     </select>
@@ -38,7 +38,7 @@
         and delete_flag = '0'
         and delete_flag = '0'
         <if test="searchKeyWord != null and searchKeyWord != ''">
         <if test="searchKeyWord != null and searchKeyWord != ''">
             AND (lower(comp_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
             AND (lower(comp_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
-            OR (lower(customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
+            OR lower(customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))
             OR lower(customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))
         </if>
         </if>
         ORDER BY update_date DESC
         ORDER BY update_date DESC