| | |
| | | package com.dy.pipIrrGlobal.voSe; |
| | | |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.dy.common.po.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | * @author ZhuBaoMin |
| | | * @date 2023/12/22 11:43 |
| | | * @LastEditTime 2023/12/22 11:43 |
| | | * @Description |
| | | * @Description 农户视图对象 |
| | | */ |
| | | |
| | | @Data |
| | | @Schema(title = "农户视图对象") |
| | | @JsonPropertyOrder({"countyId","countryName","townId","townName","villageId","villageName","blockId","blockName","divideId","divideName","typeId","waterTypeName","clientId","name","clientNum","phone","idCard","area","cardCount","address","remarks","operateDt"}) |
| | | public class VoClient implements BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | private static final long serialVersionUID = 202410282047001L; |
| | | |
| | | |
| | | @Schema(title = "县ID") |
| | | private String countyId; |
| | | @Schema(title = "县名称") |
| | | /** |
| | | * 县ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long countyId; |
| | | |
| | | /** |
| | | * 县名称 |
| | | */ |
| | | private String countryName; |
| | | |
| | | @Schema(title = "镇ID") |
| | | private String townId; |
| | | @Schema(title = "镇名称") |
| | | /** |
| | | * 镇ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long townId; |
| | | |
| | | /** |
| | | * 镇名称 |
| | | */ |
| | | private String townName; |
| | | |
| | | @Schema(title = "村ID") |
| | | private String villageId; |
| | | @Schema(title = "村名称") |
| | | /** |
| | | * 村ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long villageId; |
| | | |
| | | /** |
| | | * 村名称 |
| | | */ |
| | | private String villageName; |
| | | |
| | | @Schema(title = "片区ID") |
| | | private String blockId; |
| | | @Schema(title = "片区名称") |
| | | /** |
| | | * 片区ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long blockId; |
| | | |
| | | /** |
| | | * 片区名称 |
| | | */ |
| | | private String blockName; |
| | | |
| | | @Schema(title = "分水房ID") |
| | | private String divideId; |
| | | @Schema(title = "分水房名称") |
| | | /** |
| | | * 分水房ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long divideId; |
| | | |
| | | /** |
| | | * 分水房名称 |
| | | */ |
| | | private String divideName; |
| | | |
| | | @Schema(title = "用户类型ID") |
| | | private String waterTypeId; |
| | | @Schema(title = "用户类型名称") |
| | | /** |
| | | * 用户类型ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long typeId; |
| | | |
| | | /** |
| | | * 用户类型名称 |
| | | */ |
| | | private String waterTypeName; |
| | | |
| | | @Schema(title = "农户ID") |
| | | private String clientId; |
| | | /** |
| | | * 农户ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long clientId; |
| | | |
| | | @Schema(title = "农户姓名") |
| | | /** |
| | | * 农户姓名 |
| | | */ |
| | | private String name; |
| | | |
| | | @Schema(title = "农户编号") |
| | | /** |
| | | * 农户编号 |
| | | */ |
| | | private String clientNum; |
| | | |
| | | @Schema(title = "手机号") |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | private String phone; |
| | | |
| | | @Schema(title = "身份证号") |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | private String idCard; |
| | | |
| | | @Schema(title = "种植面积") |
| | | /** |
| | | * 种植面积 |
| | | */ |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double area; |
| | | |
| | | @Schema(title = "卡片数量") |
| | | /** |
| | | * 卡片数量 |
| | | */ |
| | | private Integer cardCount; |
| | | |
| | | @Schema(title = "地址") |
| | | /** |
| | | * 地址 |
| | | */ |
| | | private String address; |
| | | |
| | | @Schema(title = "备注") |
| | | /** |
| | | * 备注 |
| | | */ |
| | | private String remarks; |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |