package com.fzzy.api.entity; import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * 接口表-储备计划信息数据表 * * @author chen * @date 2022-09-02 16:03 */ @Data @Entity @Table(name = "API_1402") @EqualsAndHashCode(callSuper=false) public class Api1402 implements Serializable { /** * */ private static final long serialVersionUID = 1L; /*----------国标字段----------*/ @Id @PropertyDef(label = "计划单号" ) @Column(name = "jhdh", length = 21) private String jhdh; @PropertyDef(label = "计划文号" ) @Column(name = "jhwh", length = 128) private String jhwh; @PropertyDef(label = "计划名称" ) @Column(name = "jhmc", length = 256) private String jhmc; @PropertyDef(label = "计划年度" ) @Column(name = "jhnd", length = 4) private String jhnd; @PropertyDef(label = "制定计划单位" ) @Column(name = "jhzddw", length = 128) private String jhzddw; @JSONField(format = "yyyy-MM-dd") @PropertyDef(label = "计划下达时间" ) @Column(name = "jhxdsj") private Date jhxdsj; @PropertyDef(label = "粮食品种代码" ) @Column(name = "lspzdm", length = 7) private String lspzdm; @PropertyDef(label = "粮食等级代码" ) @Column(name = "lsdjdm", length = 2) private String lsdjdm; @PropertyDef(label = "粮食性质代码" ) @Column(name = "lsxzdm", length = 3) private String lsxzdm; @PropertyDef(label = "数量" ) @Column(name = "sl", precision = 20, scale = 6) private Double sl; @PropertyDef(label = "操作标志" ) @Column(name = "czbz", length = 1) private String czbz; @JSONField(format = "yyyy-MM-dd HH:mm:ss") @PropertyDef(label = "最后更新时间" ) @Column(name = "zhgxsj") private Date zhgxsj; @JSONField(serialize = false) @PropertyDef(label = "业务id") @Column(name = "bizId", length = 40) private String bizId; @PropertyDef(label = "库区代码") @Column(name = "kqdm", length = 21) private String kqdm; @JSONField(serialize = false) @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间") @Column(name = "syncTime") private Date syncTime; /*----------广东省平台规范字段----------*/ @PropertyDef(label = "单位代码" ) @Column(name = "dwdm") private String dwdm; @PropertyDef(label = "粮权行政区划代码" ) @Column(name = "lqxzqhdm") private String lqxzqhdm; @PropertyDef(label = "轮换类型" ) @Column(name = "rotationType") private String rotationType; }