| package com.dy.pipIrrGlobal.pojoPr; | 
|   | 
| /** | 
|  * @author ZhuBaoMin | 
|  * @date 2023/12/20 20:17 | 
|  * @LastEditTime 2023/12/20 20:17 | 
|  * @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 com.fasterxml.jackson.annotation.JsonFormat; | 
| import io.swagger.v3.oas.annotations.media.Schema; | 
| import jakarta.validation.constraints.NotBlank; | 
| import jakarta.validation.constraints.NotNull; | 
| import lombok.*; | 
| import org.hibernate.validator.constraints.Length; | 
|   | 
| import java.util.Date; | 
|   | 
| /** | 
|  * 分水房表 | 
|  */ | 
|   | 
| @TableName(value="pr_divide", autoResultMap = true) | 
| @Data | 
| @Builder | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| @Schema(name = "分水房实体") | 
| public class PrDivide implements BaseEntity { | 
|     public static final long serialVersionUID = 202401151517002L; | 
|     /** | 
|      * 主键 | 
|      */ | 
|     @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 = "所在县ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     private Long countyid; | 
|   | 
|     /** | 
|      * 所在镇 | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @Schema(description = "所在镇ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     private Long townid; | 
|   | 
|     /** | 
|      * 所在村 | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @Schema(description = "所在村ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
| //    @NotNull(message = "所在村不能为空") | 
|     private Long villageid; | 
|   | 
|     /** | 
|      * 所在片区 | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @Schema(description = "所在片区ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "所在片区不能为空") | 
|     private Long blockid; | 
|   | 
|     /** | 
|      * 分水口名称或编号 | 
|      */ | 
|     @Schema(description = "分水房名称", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotBlank(message = "分水房名称不能为空") | 
|     @Length(message = "分水房名称不大于{max}字,不小于{min}字", min = 1, max = 25) | 
|     private String name; | 
|   | 
|     /** | 
|      * 覆盖村 | 
|      */ | 
|     @Schema(description = "覆盖村", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @Length(message = "覆盖村不大于{max}字", max = 100) | 
|     private String villages; | 
|   | 
|     /** | 
|      * 覆盖面积(平方公里) | 
|      */ | 
|     @Schema(description = "覆盖面积", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Double area; | 
|   | 
|     /** | 
|      * 负责人 | 
|      */ | 
|     @Schema(description = "负责人", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     private String header; | 
|   | 
|     /** | 
|      * 联系电话 | 
|      */ | 
|     @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     //@NotBlank(message = "联系电话不能为空") | 
|     @Length(message = "农联系电话必须{max}位数据",  max = 11) | 
|     private String phone; | 
|   | 
|     /** | 
|      * 经度 | 
|      */ | 
|     @Schema(description = "经度", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "经度不能为空") | 
|     private Double lng; | 
|   | 
|     /** | 
|      * 纬度 | 
|      */ | 
|     @Schema(description = "经度", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "经度不能为空") | 
|     private Double lat; | 
|   | 
|     /** | 
|      * 备注信息 | 
|      */ | 
|     @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Length(message = "备注不大于{max}字", max = 200) | 
|     private String remarks; | 
|   | 
|     /** | 
|      * 操作人ID | 
|      */ | 
|     @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotNull(message = "操作人ID不能为空") | 
|     private Long operator; | 
|   | 
|     /** | 
|      * 操作时间 | 
|      */ | 
|     @Schema(description = "操作时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Date operatedt; | 
|   | 
|     /** | 
|      * 逻辑删除标识;0-未删除,1-删除 | 
|      */ | 
|     @Schema(description = "删除标识", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Byte deleted; | 
|   | 
| } |