package com.fzzy.api.entity; import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; import java.util.Date; /** * 接口表-库区信息 */ @Data @Entity @Table(name = "API_1102") public class Api1102 implements Serializable { /** * */ private static final long serialVersionUID = 6597930270077627879L; @Id @PropertyDef(label = "库区代码" ) @Column(name = "kqdm", length = 21) private String kqdm; @JsonIgnore @PropertyDef(label = "业务id") @Column(name = "bizId", length = 40) private String bizId; @PropertyDef(label = "单位代码" ) @Column(name = "dwdm", length = 18) private String dwdm; @PropertyDef(label = "库区名称" ) @Column(name = "kqmc", length = 256) private String kqmc; @PropertyDef(label = "库区地址" ) @Column(name = "kqdz", length = 512) private String kqdz; @PropertyDef(label = "行政区划代码" ) @Column(name = "xzqhdm", length = 6) private String xzqhdm; @JSONField(serialize = false) @PropertyDef(label = "行政区划名称", description = "非国标字段,后期增加") @Column(name = "xzqhmc", length = 20) private String xzqhmc; @PropertyDef(label = "库区产权" ) @Column(name = "kqcq", length = 4) private String kqcq; @PropertyDef(label = "有效仓容" ) @Column(name = "yxcr", precision = 20, scale = 6) private double yxcr; @PropertyDef(label = "有效罐容" ) @Column(name = "yxgr", precision = 20, scale = 6) private double yxgr; @PropertyDef(label = "占地面积" ) @Column(name = "zdmj", precision = 20, scale = 6) private double zdmj; @PropertyDef(label = "仓房数" ) @Column(name = "cfs") private Integer cfs; @PropertyDef(label = "油罐数" ) @Column(name = "ygs") private Integer ygs; @PropertyDef(label = "库区经度" ) @Column(name = "jd", precision = 20, scale = 6) private double jd; @PropertyDef(label = "库区纬度" ) @Column(name = "wd", precision = 20, scale = 6) private double wd; @PropertyDef(label = "操作标志" ) @Column(name = "czbz", length = 1) private String czbz; @PropertyDef(label = "最后更新时间" ) @JSONField(format = "yyyy-MM-dd HH:mm:ss") @Column(name = "zhgxsj", nullable = false) private Date zhgxsj; }