package com.fzzy.async.fzzy35.entity;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 仓房敖间-与仓房建筑不一样,只作为具体仓库使用,系统中仓库的最小单位定义
|
*
|
* @author Andy
|
*
|
* 版本升级记录: 1,调整字段结构,删除配置类型字段
|
*
|
*/
|
@Data
|
@Entity
|
@Table(name = "D_DEPOT")
|
@IdClass(DepotKey.class)
|
public class Depot implements Serializable {
|
|
@Id
|
@Column(name = "ID_", length = 50)
|
@PropertyDef(label = "仓库编号")
|
private String id;
|
|
@Id
|
@Column(name = "COMPANY_ID_", length = 10)
|
@PropertyDef(label = "组织编码")
|
private String companyId;
|
|
@Column(name = "DEPT_ID_", length = 40)
|
@PropertyDef(label = "所属分库")
|
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 = 6)
|
@PropertyDef(label = "储粮方式", description = "1:散装储粮 2:包装储粮 3:围包散存 9:其他")
|
private String storeType;
|
|
@Column(name = "STORAGE_MAX_")
|
@PropertyDef(label = "设计储量", description = "单位:KG")
|
private Double storageMax;
|
|
/**
|
* 实际储量需要独立去修改
|
*/
|
@Column(name = "STORAGE_REAL_", 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 = "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", timezone = "GMT+8")
|
private Date checkDate;
|
|
@Column(name = "STORE_DATE_")
|
@PropertyDef(label = "入库时间", description = "入库时间")
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
private Date storeDate;
|
|
@Column(name = "FOOD_YEAR_", length = 10)
|
@PropertyDef(label = "粮食年份")
|
private String foodYear;
|
|
@Column(name = "REMARK_", length = 250)
|
@PropertyDef(label = "备注", description = "备注信息")
|
private String remark;
|
}
|