Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/master'

李进 1 anno fa
parent
commit
778d961049

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

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

+ 3 - 0
device-api/src/main/java/com/xy/dto/DeviceInfoDto.java

@@ -395,6 +395,9 @@ public class DeviceInfoDto {
         @ApiModelProperty("缺货状态")
         @ApiModelProperty("缺货状态")
         private Integer stockStatus;
         private Integer stockStatus;
 
 
+        @ApiModelProperty("搜索词")
+        private String keyword;
+
         /**
         /**
          * 设备ID
          * 设备ID
          */
          */