| | |
| | | import com.dy.common.po.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.Max; |
| | | import jakarta.validation.constraints.Min; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | |
| | | @Data |
| | | @Schema(title = "控制器视图对象") |
| | | public class VoController implements BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | private static final long serialVersionUID = 202401241704003L; |
| | | |
| | | @Schema(title = "ID") |
| | | @ExcelProperty("ID") |
| | | @ColumnWidth(10) |
| | | private Long id; |
| | | private String id; |
| | | |
| | | @Schema(title = "控制器地址") |
| | | @ExcelProperty("控制器地址") |
| | | @ColumnWidth(15) |
| | | private String rtuAddr; |
| | | |
| | | @Schema(title = "在线状态") |
| | | @ExcelProperty("在线状态") |
| | | @ColumnWidth(15) |
| | | private String onlineState; |
| | | |
| | | @Schema(title = "绑定取水口") |
| | | @ExcelProperty("绑定取水口") |
| | |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Schema(title = "最近上报时间") |
| | | @ExcelProperty("最近上报时间") |
| | | @Schema(title = "发现日期时间") |
| | | @ExcelProperty("发现日期时间") |
| | | @ColumnWidth(30) |
| | | private Date reportTime; |
| | | private Date findDt; |
| | | |
| | | // @Schema(title = "在线状态") |
| | | // @ExcelProperty("在线状态") |
| | | // @ColumnWidth(6) |
| | | // private String onlineState; |
| | | |
| | | /** |
| | | * 是否在线 |
| | | */ |
| | | private Boolean isOnLine; |
| | | |
| | | |
| | | @Schema(title = "通讯协议") |
| | | @ExcelProperty("通讯协议") |
| | | @ColumnWidth(10) |
| | | private String protocol; |
| | | |
| | | @Schema(title = "备注") |
| | | @ExcelProperty("备注") |
| | | @ColumnWidth(10) |
| | | private String remarks; |
| | | } |