New file |
| | |
| | | package com.dy.pipIrrGlobal.pojoUg; |
| | | |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.dy.common.po.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2024/11/5 9:29 |
| | | * @Description |
| | | */ |
| | | |
| | | @TableName(value="ug_rtu_controller", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | | @AllArgsConstructor |
| | | @Schema(name = "RTU远程升级所关联的测控一体阀 ") |
| | | public class UgRtuController implements BaseEntity { |
| | | |
| | | public static final long serialVersionUID = 202411050918001L; |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | @TableId(type = IdType.INPUT) |
| | | public Long id; |
| | | |
| | | /** |
| | | * 外键,指向升级任务 |
| | | */ |
| | | @Schema(description = "升级任务实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long taskId; |
| | | |
| | | /** |
| | | * 控制器实体ID(外键) |
| | | */ |
| | | @Schema(description = "控制器实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long controllerId; |
| | | |
| | | /** |
| | | * 控制器地址 |
| | | */ |
| | | @Schema(description = "控制器地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | public String rtuAddr; |
| | | |
| | | /** |
| | | * 升级是否结束 |
| | | */ |
| | | @Schema(description = "升级是否结束", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | public Byte isOver; |
| | | |
| | | /** |
| | | * 升级是否结束 |
| | | */ |
| | | @Schema(description = "升级是否结束", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @TableField(exist = false) |
| | | public String isOverStr; |
| | | |
| | | /** |
| | | * 升级状态 |
| | | */ |
| | | @Schema(description = "升级状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | public Integer ugState; |
| | | |
| | | /** |
| | | * 升级状态 |
| | | */ |
| | | @Schema(description = "升级状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | public String ugStateStr; |
| | | |
| | | /** |
| | | * 升级结束时间 |
| | | */ |
| | | @Schema(description = "升级结束时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS") |
| | | public Integer overDt; |
| | | |
| | | /** |
| | | * 无参数据构造方法 |
| | | */ |
| | | public UgRtuController(){ |
| | | this.isOver = 0; |
| | | } |
| | | |
| | | |
| | | } |