| package com.dy.pipIrrGlobal.pojoPr; | 
|   | 
| /** | 
|  * @Author liurunyu | 
|  * @Date 2024/1/15 15:00 | 
|  * @LastEditTime 2024/1/15 15:00 | 
|  * @Description | 
|  */ | 
|   | 
| import com.alibaba.fastjson2.annotation.JSONField; | 
| import com.alibaba.fastjson2.writer.ObjectWriterImplToString; | 
| import com.baomidou.mybatisplus.annotation.IdType; | 
| import com.baomidou.mybatisplus.annotation.TableId; | 
| import com.baomidou.mybatisplus.annotation.TableName; | 
| import com.dy.common.po.BaseEntity; | 
| import io.swagger.v3.oas.annotations.media.Schema; | 
| import jakarta.validation.constraints.NotBlank; | 
| import lombok.*; | 
|   | 
| import java.util.Date; | 
|   | 
| /** | 
|  * 流浪控制器 | 
|  */ | 
| @TableName(value="pr_controller_tramp", autoResultMap = true) | 
| @Data | 
| @Builder | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| @Schema(name = "流浪控制器") | 
| public class PrControllerTramp implements BaseEntity { | 
|     public static final long serialVersionUID = 2024011502001L; | 
|     /** | 
|      * 主键 | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @TableId(type = IdType.INPUT) | 
|     @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     public Long id; | 
|   | 
|     /** | 
|      * 控制器地址 | 
|      */ | 
|     @Schema(description = "控制器地址", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotBlank(message = "控制器地址不能为空") | 
|     public String rtuAddr; | 
|   | 
|     /** | 
|      * 通讯协议 | 
|      */ | 
|     @Schema(description = "通讯协议", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotBlank(message = "通讯协议不能为空") | 
|     public String protocol; | 
|   | 
|     /** | 
|      * 通讯协议版本号 | 
|      */ | 
|     @Schema(description = "通讯协议版本号", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotBlank(message = "通讯协议版本号") | 
|     public Integer protocolVersion; | 
|   | 
|     /** | 
|      * 发现时间 | 
|      */ | 
|     @Schema(description = "发现时间", requiredMode = Schema.RequiredMode.REQUIRED) | 
| //    @NotNull(message = "发现时间不能为空") | 
|     public Date findDt;//发现时间( yyyy-mm-dd HH:MM:SS) | 
|     /** | 
|      * 机构tag | 
|      */ | 
|     @Schema(description = "机构tag", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotBlank(message = "机构tag不能为空") | 
|     public String orgTag; | 
|   | 
| } |