소스 검색

增加关键词搜索

hechunping 1 년 전
부모
커밋
0b2a2ebf9a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      device-api-service/src/main/resources/mapper/DeviceInfoMapper.xml

+ 1 - 1
device-api-service/src/main/resources/mapper/DeviceInfoMapper.xml

@@ -259,7 +259,7 @@
             </choose>
         </if>
         <if test="queryPage.keyword != null and queryPage.keyword != ''">
-            and CONCAT(IFNULL(info.device_name, ''), IFNULL(info.device_id, '')) LIKE CONCAT('%',#{keyword},'%')
+            and CONCAT(IFNULL(info.device_name, ''), IFNULL(info.device_id, '')) LIKE CONCAT('%',#{queryPage.keyword},'%')
         </if>
         <if test="queryPage.showStatus != null">
             and info.show_status = #{queryPage.showStatus}