|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.common.webUtil.QueryConditionVo; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import jakarta.validation.constraints.Max; | 
|---|
|  |  |  | import jakarta.validation.constraints.Min; | 
|---|
|  |  |  | import lombok.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @Schema(name = "控制器查询条件") | 
|---|
|  |  |  | public class QueryVo extends QueryConditionVo { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "控制器ID") | 
|---|
|  |  |  | private Long id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "控制器编号") | 
|---|
|  |  |  | private String controllerCode; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "在线状态") | 
|---|
|  |  |  | public Integer onlineState; | 
|---|
|  |  |  | @Schema(description = "控制器地址") | 
|---|
|  |  |  | private String rtuAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    @Schema(description = "在线状态") | 
|---|
|  |  |  | //    public Integer onlineState; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "绑定数量") | 
|---|
|  |  |  | public Integer bindNumber; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 中间件返回的RTU在线情况对象数组 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String onLineMap; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 是否在线 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Max(value = 1,message = "是否在线仅允许为真或假") | 
|---|
|  |  |  | @Min(value = 0,message = "是否在线仅允许为真或假") | 
|---|
|  |  |  | private Boolean isOnLine; | 
|---|
|  |  |  | } | 
|---|