瀏覽代碼

增加关键词搜索

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>
             </choose>
         </if>
         </if>
         <if test="queryPage.keyword != null and queryPage.keyword != ''">
         <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>
         <if test="queryPage.showStatus != null">
         <if test="queryPage.showStatus != null">
             and info.show_status = #{queryPage.showStatus}
             and info.show_status = #{queryPage.showStatus}