|
@@ -39,6 +39,33 @@ public class DeviceInfoDto {
|
|
*/
|
|
*/
|
|
public final static String CLEAR = "clear";
|
|
public final static String CLEAR = "clear";
|
|
|
|
|
|
|
|
+ @Data
|
|
|
|
+ @Accessors(chain = true)
|
|
|
|
+ public static class SimpleDeviceSearchPageDto {
|
|
|
|
+ @NotNull(message = "分页对象不能为空")
|
|
|
|
+ @ApiModelProperty(value = "分页对象", required = true)
|
|
|
|
+ private PageBean page;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("设备名称/设备编号")
|
|
|
|
+ private String searchKey;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "权限设备id多个", hidden = true)
|
|
|
|
+ private List<Long> myDeviceIds;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "商户Id", hidden = true)
|
|
|
|
+ private Long mercId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Data
|
|
|
|
+ @Accessors(chain = true)
|
|
|
|
+ public static class SimpleDeviceSearchPageVo {
|
|
|
|
+ @ApiModelProperty(value = "设备名称")
|
|
|
|
+ private String deviceName;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "权限设备id多个", hidden = true)
|
|
|
|
+ private Long deviceId;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Data
|
|
@Data
|
|
@Accessors(chain = true)
|
|
@Accessors(chain = true)
|
|
public static class Count {
|
|
public static class Count {
|
|
@@ -462,46 +489,24 @@ public class DeviceInfoDto {
|
|
|
|
|
|
@ApiModelProperty("是否绑定商户")
|
|
@ApiModelProperty("是否绑定商户")
|
|
private Boolean isBindMerc;
|
|
private Boolean isBindMerc;
|
|
-
|
|
|
|
- /**
|
|
|
|
- * size -1 不分页
|
|
|
|
- *
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- public PageBean getPage() {
|
|
|
|
- if (!this.exportPage) {
|
|
|
|
- this.page.setSize(-1L);
|
|
|
|
- }
|
|
|
|
- return page;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@ApiModelProperty("资产/sn/sim号")
|
|
@ApiModelProperty("资产/sn/sim号")
|
|
private String no;
|
|
private String no;
|
|
-
|
|
|
|
@ApiModelProperty("商户id/商户号/商户名称")
|
|
@ApiModelProperty("商户id/商户号/商户名称")
|
|
private String merc;
|
|
private String merc;
|
|
-
|
|
|
|
@ApiModelProperty("设备id/设备名称")
|
|
@ApiModelProperty("设备id/设备名称")
|
|
private String deviceIdName;
|
|
private String deviceIdName;
|
|
-
|
|
|
|
@ApiModelProperty("联网状态")
|
|
@ApiModelProperty("联网状态")
|
|
private Integer netState;
|
|
private Integer netState;
|
|
-
|
|
|
|
@ApiModelProperty("上位机版本号")
|
|
@ApiModelProperty("上位机版本号")
|
|
private String appUpmVersion;
|
|
private String appUpmVersion;
|
|
-
|
|
|
|
@ApiModelProperty("下位机版本号")
|
|
@ApiModelProperty("下位机版本号")
|
|
private String appDownmVersion;
|
|
private String appDownmVersion;
|
|
-
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@ApiModelProperty(value = "激活时间-起")
|
|
@ApiModelProperty(value = "激活时间-起")
|
|
private LocalDate beginActiveTime;
|
|
private LocalDate beginActiveTime;
|
|
-
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@ApiModelProperty(value = "激活时间-始")
|
|
@ApiModelProperty(value = "激活时间-始")
|
|
private LocalDate endActiveTime;
|
|
private LocalDate endActiveTime;
|
|
-
|
|
|
|
@ApiModelProperty("附近最大距离,单位:米")
|
|
@ApiModelProperty("附近最大距离,单位:米")
|
|
private Integer nearby;
|
|
private Integer nearby;
|
|
@ApiModelProperty(value = "系统信息", hidden = true)
|
|
@ApiModelProperty(value = "系统信息", hidden = true)
|
|
@@ -510,10 +515,21 @@ public class DeviceInfoDto {
|
|
private DeviceStatusDto.Vo deviceStatus;
|
|
private DeviceStatusDto.Vo deviceStatus;
|
|
@ApiModelProperty(value = "注册信息", hidden = true)
|
|
@ApiModelProperty(value = "注册信息", hidden = true)
|
|
private DeviceRegisterDto.Vo deviceRegister;
|
|
private DeviceRegisterDto.Vo deviceRegister;
|
|
-
|
|
|
|
@ApiModelProperty(value = "限制查询数量", required = false)
|
|
@ApiModelProperty(value = "限制查询数量", required = false)
|
|
private Integer limitNum;
|
|
private Integer limitNum;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * size -1 不分页
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public PageBean getPage() {
|
|
|
|
+ if (!this.exportPage) {
|
|
|
|
+ this.page.setSize(-1L);
|
|
|
|
+ }
|
|
|
|
+ return page;
|
|
|
|
+ }
|
|
|
|
+
|
|
public String getBeginActiveTime() {
|
|
public String getBeginActiveTime() {
|
|
return beginActiveTime == null ? null : DataTime.toString(beginActiveTime.atTime(0, 0, 0));
|
|
return beginActiveTime == null ? null : DataTime.toString(beginActiveTime.atTime(0, 0, 0));
|
|
}
|
|
}
|