package com.fzzy.async.fzzy30.entity; import com.bstek.dorado.annotation.PropertyDef; import com.fasterxml.jackson.annotation.JsonFormat; 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; /** * 仓房敖间-与仓房建筑不一样,只作为具体仓库使用,系统中仓库的最小单位定义 * * @author Andy * * 版本升级记录: 1,调整字段结构,删除配置类型字段 * */ @Data @Entity @Table(name = "D_DEPOT") public class Depot implements Serializable { /** * */ private static final long serialVersionUID = 1L; @Id @Column(name = "ID_", length = 10) @PropertyDef(label = "仓库编号") private String id; @Column(name = "COMPANY_ID_", length = 10) @PropertyDef(label = "组织编码") private String companyId; @Column(name = "DEPT_ID_", length = 40) @PropertyDef(label = "部门id") private String deptId; @Column(name = "NAME_", length = 50) @PropertyDef(label = "仓库名称") private String name; @Column(name = "BUILDING_ID_", length = 50) @PropertyDef(label = "所属仓房建筑") private String buildingId; @Column(name = "DEPOT_TYPE_", length = 10) @PropertyDef(label = "仓库类型", description = "普通平房仓") private String depotType; @Column(name = "DEPOT_STATUS_", length = 10) @PropertyDef(label = "仓库状态", description = "") private String depotStatus; @Column(name = "STORE_TYPE_", length = 10) @PropertyDef(label = "储存方式") private String storeType; @Column(name = "STORAGE_MAX_") @PropertyDef(label = "设计储量", description = "单位:KG") private Double storageMax; /** * 实际储量需要独立去修改 */ @Column(name = "STORAGE_REAL_", updatable = false, insertable = true) @PropertyDef(label = "实际储量", description = "单位:KG") private Double storageReal; @Column(name = "ORIENTATION_", length = 10) @PropertyDef(label = "朝向", description = "东、南、西、北") private String orientation; @Column(name = "FOOD_TYPE_", length = 10) @PropertyDef(label = "粮食性质") private String foodType; @Column(name = "FOOD_VARIETY_", length = 10) @PropertyDef(label = "粮食品种") private String foodVariety; @Column(name = "FOOD_LEVEL_", length = 10) @PropertyDef(label = "粮食等级") private String foodLevel; @Column(name = "FOOD_LOCATION_", length = 200) @PropertyDef(label = "粮食产地") private String foodLocation; // -----以下为粮食质量信息 ------// @Column(name = "PER_WET_") @PropertyDef(label = "水分", description = "百分比") private Double perWet; @Column(name = "PER_IMPURITY_") @PropertyDef(label = "杂质", description = "百分比") private Double perImpurity; @Column(name = "BULK_WEIGHT_") @PropertyDef(label = "容重 g/L", description = "容重 g/L") private Double bulkWeight; @Column(name = "WATER_GLUTEN_") @PropertyDef(label = "面筋持水率", description = "%,针对小麦") private Double waterGluten; @Column(name = "ROUGH_") @PropertyDef(label = "出糙率", description = "%") private Double rough; @Column(name = "BROKEN_") @PropertyDef(label = "不完整颗粒", description = "%") private Double broken; @Column(name = "STORE_KEEPER_", length = 30) @PropertyDef(label = "保管员账号") private String storeKeeper; @Column(name = "STORE_KEEPER_NAME_", length = 50) @PropertyDef(label = "保管员", description = "中文名称") private String storeKeeperName; @Column(name = "CHECK_DATE_") @PropertyDef(label = "检测时间", description = "最后检测粮食时间") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") private Date checkDate; @Column(name = "STORE_DATE_") @PropertyDef(label = "入库时间", description = "入库时间") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") private Date storeDate; @Column(name = "FOOD_YEAR_", length = 40) @PropertyDef(label = "粮食年份") private String foodYear; @Column(name = "REMARK_", length = 500) @PropertyDef(label = "备注", description = "备注信息") private String remark; }