zhangyuewww 3 years ago
parent
commit
db73ff2334

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

@@ -10,7 +10,8 @@
         comp_id = #{compId}
         and delete_flag = '0'
         <if test="searchKeyWord != null and searchKeyWord != ''">
-            AND (lower(customer) like lower(CONCAT('%',#{searchKeyWord},'%'))
+            AND (lower(comp_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
+            OR (lower(customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))
         </if>
     </select>