| | |
| | | |
| | | 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 io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.*; |
| | |
| | | @AllArgsConstructor |
| | | @Schema(name = "农户实体") |
| | | public class SeClient implements BaseEntity { |
| | | public static final long serialVersionUID = 202311141539001L; |
| | | public static final long serialVersionUID = 202401151518003L; |
| | | |
| | | /** |
| | | * 主键 |
| | |
| | | private String name; |
| | | |
| | | /** |
| | | * 虚拟卡号;10位,从1000000000开始 |
| | | */ |
| | | @Schema(description = "虚拟卡号", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @NotNull(message = "虚拟卡号不能为空") |
| | | private Long virtualid; |
| | | |
| | | /** |
| | | * 农户编号;6位区划 + 4为顺序号 |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | |
| | | private Double area; |
| | | |
| | | /** |
| | | * 用水类型ID |
| | | */ |
| | | @Schema(description = "用水类型ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private Long typeid; |
| | | |
| | | /** |
| | | * 街道及门牌号 |
| | | */ |
| | | @Schema(description = "街道+门牌号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | |
| | | 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; |
| | | |
| | | } |