Pārlūkot izejas kodu

设备列表筛选是否有nfc

tanbin 9 mēneši atpakaļ
vecāks
revīzija
c0e8092c3c

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

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

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

@@ -58,7 +58,7 @@ public class DeviceInfoDto {
         @NotBlank(message = "设备编号不可为空")
         @ApiModelProperty(value = "设备编号", required = true)
         private String deviceId;
- 
+
     }
 
 
@@ -546,6 +546,8 @@ public class DeviceInfoDto {
         @ApiModelProperty("是否查询故障设备")
         private Boolean fault;
 
+        @ApiModelProperty("是否有nfc")
+        private Boolean isHaveNfc;
 
         @ApiModelProperty("是否导出当前页")
         private Boolean exportPage = true;