|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.baomidou.mybatisplus.annotation.*; | 
|---|
|  |  |  | import com.dy.common.po.BaseEntity; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import jakarta.validation.constraints.*; | 
|---|
|  |  |  | import lombok.*; | 
|---|
|  |  |  | 
|---|
|  |  |  | @AllArgsConstructor | 
|---|
|  |  |  | @Schema(name = "农户实体") | 
|---|
|  |  |  | public class SeClient implements BaseEntity { | 
|---|
|  |  |  | public static final long serialVersionUID = 202311141539001L; | 
|---|
|  |  |  | public static final long serialVersionUID = 202401151518003L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键 | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @Schema(description = "所在县ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "所在县不能为空") | 
|---|
|  |  |  | private Long countyid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @Schema(description = "所在镇ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "所在镇不能为空") //不能为空也不能为null | 
|---|
|  |  |  | private Long townid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @Schema(description = "所在村ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "所在村不能为空") //不能为空也不能为null | 
|---|
|  |  |  | private Long villageid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @Schema(description = "所在片区ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "所在片区不能为空") //不能为空也不能为null | 
|---|
|  |  |  | private Long blockid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @Schema(description = "所在分水房ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "所在分水房不能为空") //不能为空也不能为null | 
|---|
|  |  |  | private Long divideid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | private String name; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 虚拟卡号;10位,从1000000000开始 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "虚拟卡号", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | private Long virtualid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 农户编号;6位区划 + 4为顺序号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @Schema(description = "农户编号", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | //@NotBlank(message = "农户编号不能为空") | 
|---|
|  |  |  | private String clientnum; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @Schema(description = "区划编码串", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | //@NotNull(message = "区划编码串不能为空") | 
|---|
|  |  |  | private Long districtnum; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 区划名称串;县名+镇名+村名,用于归属地 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "区划名称串", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | //@NotBlank(message = "区划名称串") | 
|---|
|  |  |  | private String districttitle; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "农户身份证号", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotBlank(message = "农户身份证号不能为空") //不能为空也不能为null | 
|---|
|  |  |  | @Length(message = "农户身份证号必须{max}位数据", min = 18, max = 18) | 
|---|
|  |  |  | //@Length(message = "农户身份证号必须{max}位数据", min = 18, max = 18) | 
|---|
|  |  |  | private String idcard; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 种植面积 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "农户种植面积", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double area; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 用水类型ID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "用水类型ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | private Long typeid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 街道及门牌号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "街道+门牌号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @Length(message = "地址不大于{max}字,不小于{min}字", min = 1, max = 50) | 
|---|
|  |  |  | @Length(message = "地址不大于{max}字,不小于{min}字", max = 50) | 
|---|
|  |  |  | private String address; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 备注信息 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @Length(message = "备注不大于{max}字,不小于{min}字", min = 1, max = 200) | 
|---|
|  |  |  | @Length(message = "备注不大于{max}字,不小于{min}字", max = 200) | 
|---|
|  |  |  | private String remarks; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 操作人编号 | 
|---|
|  |  |  | * 操作人ID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "操作人编号不能为空") | 
|---|
|  |  |  | @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "操作人ID不能为空") | 
|---|
|  |  |  | private Long operator; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @Schema(description = "是否禁用", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @Max(message = "是否禁用只能0或1", value = 1) | 
|---|
|  |  |  | @Min(message = "是否禁用只能0或1",value = 0) | 
|---|
|  |  |  | @TableField(updateStrategy = FieldStrategy.NEVER) | 
|---|
|  |  |  | private Byte disabled; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 逻辑删除标识;0-未删除,1-删除 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "删除标识,form表单中不存在,只在查询显示中有效", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @TableField(updateStrategy = FieldStrategy.NEVER) | 
|---|
|  |  |  | private Byte deleted; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|