package com.dy.pipIrrGlobal.pojoPr; 
 | 
  
 | 
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 org.hibernate.validator.constraints.Length; 
 | 
  
 | 
import java.util.Date; 
 | 
  
 | 
/** 
 | 
 * @author ZhuBaoMin 
 | 
 * @date 2024-01-05 9:04 
 | 
 * @LastEditTime 2024-04-01 9:04 wuzeyu 
 | 
 * @Description 
 | 
 */ 
 | 
  
 | 
@TableName(value="pr_flowmeter", autoResultMap = true) 
 | 
@Data 
 | 
@Builder 
 | 
@ToString 
 | 
@NoArgsConstructor 
 | 
@AllArgsConstructor 
 | 
@Schema(name = "流量计实体") 
 | 
public class PrFlowmeter implements BaseEntity { 
 | 
    public static final long serialVersionUID = 202401151517003L; 
 | 
  
 | 
    /** 
 | 
    * 主键 
 | 
    */ 
 | 
    @JSONField(serializeUsing= ObjectWriterImplToString.class) 
 | 
    @TableId(type = IdType.INPUT) 
 | 
    @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Long id; 
 | 
  
 | 
    /** 
 | 
     * 外键 监测站ID 
 | 
     */ 
 | 
    @Schema(description = "监测站ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "监测站ID不大于{max}字,不小于{min}字", min = 1, max = 25) 
 | 
    private String monitoringId; 
 | 
  
 | 
    /** 
 | 
    * 流量计编号 
 | 
    */ 
 | 
    @Schema(description = "流量计编号", requiredMode = Schema.RequiredMode.REQUIRED) 
 | 
    @NotBlank(message = "流量计编号不能为空") 
 | 
    @Length(message = "流量计编号不大于{max}字,不小于{min}字", min = 1, max = 25) 
 | 
    private String code; 
 | 
  
 | 
    /** 
 | 
    * 通讯协议 
 | 
    */ 
 | 
    @Schema(description = "通讯协议", requiredMode = Schema.RequiredMode.REQUIRED) 
 | 
    @NotBlank(message = "通讯协议不能为空") 
 | 
    @Length(message = "通讯协议不大于{max}字",max = 25) 
 | 
    private String protocol; 
 | 
  
 | 
    /** 
 | 
    * 在线状态;1-在线,2-离线 
 | 
    */ 
 | 
    @Schema(description = "在线状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Byte onlineState; 
 | 
  
 | 
    /** 
 | 
    * 最近上报时间 
 | 
    */ 
 | 
    @Schema(description = "最近上报时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Date reportTime; 
 | 
  
 | 
    /** 
 | 
    * 添加方式;1-系统自动,2-手动 
 | 
    */ 
 | 
    @Schema(description = "添加方式", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Byte addWays; 
 | 
  
 | 
    /** 
 | 
    * 操作人ID 
 | 
    */ 
 | 
    @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Long operator; 
 | 
  
 | 
    /** 
 | 
    * 操作时间 
 | 
    */ 
 | 
    @Schema(description = "操作时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Date operateDt; 
 | 
  
 | 
    /** 
 | 
    * 备注信息 
 | 
    */ 
 | 
    @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "备注不大于{max}字,不小于{min}字", min = 1, max = 200) 
 | 
    private String remarks; 
 | 
  
 | 
    /** 
 | 
    * 逻辑删除标识;0-未删除,1-删除 
 | 
    */ 
 | 
    @Schema(description = "删除标识", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Byte deleted; 
 | 
  
 | 
} 
 |