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>