zhangyuewww 3 年之前
父節點
當前提交
db73ff2334
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/CustomerInfoMapper.xml

+ 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>