| New file | 
 |  |  | 
 |  |  | 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.Max; | 
 |  |  | import jakarta.validation.constraints.Min; | 
 |  |  | import jakarta.validation.constraints.NotNull; | 
 |  |  | import jakarta.validation.constraints.Positive; | 
 |  |  | import lombok.*; | 
 |  |  | import org.hibernate.validator.constraints.Length; | 
 |  |  |  | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author ZhuBaoMin | 
 |  |  |  * @date 2024-01-05 10:18 | 
 |  |  |  * @LastEditTime 2024-01-05 10:18 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  |  | 
 |  |  | @TableName(value="pr_monitoring_flowmeter", autoResultMap = true) | 
 |  |  | @Data | 
 |  |  | @Builder | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | @Schema(name = "监测站流量计关联实体") | 
 |  |  | public class PrMonitoringFlowmeter implements BaseEntity { | 
 |  |  |     public static final long serialVersionUID = 202401151517007L; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 主键 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @TableId(type = IdType.INPUT) | 
 |  |  |     @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     private Long id; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 监测站编号 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @Schema(description = "监测站编号", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @NotNull(message = "监测站ID不能为空") | 
 |  |  |     private Long monitoringid; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 流量计编号 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @Schema(description = "流量计编号", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @NotNull(message = "流量计ID不能为空") | 
 |  |  |     private Long flowmeterid; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 操作类型;1-捆绑,2-解绑 | 
 |  |  |     */ | 
 |  |  |     @Schema(description = "操作类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Max(message = "操作类型只能1或2", value = 2) | 
 |  |  |     @Min(message = "操作类型只能1或2",value = 1) | 
 |  |  |     private Byte operatetype; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 备注信息 | 
 |  |  |     */ | 
 |  |  |     @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Length(message = "备注长度小于{max}字", min = 1, max = 200) | 
 |  |  |     private String remarks; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 操作人ID | 
 |  |  |     */ | 
 |  |  |     @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Positive(message = "操作人ID必须为大于0的整数") | 
 |  |  |     private Long operator; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 操作时间 | 
 |  |  |     */ | 
 |  |  |     //@Schema(description = "操作时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     private Date operatedt; | 
 |  |  | } |