package com.fzzy.async.fzzy61.entity; import com.bstek.dorado.annotation.PropertyDef; import lombok.Data; import javax.persistence.*; import java.io.Serializable; /** * 仓库配置 用于配置粮情分机等配置,气体采集配置等 */ @Data @Entity @Table(name = "D_DEPOT_CONF") @IdClass(Fz61DepotConfKey.class) public class Fz61DepotConf implements Serializable { @Id @Column(name = "DEPOT_ID_", length = 50) @PropertyDef(label = "所属仓库") private String depotId; @Column(name = "COMPANY_ID_", length = 10) @PropertyDef(label = "组织编码") private String companyId; @Column(name = "DEPT_ID_", length = 40) @PropertyDef(label = "所属分库") private String deptId; @Column(name = "GRAIN_SER_", length = 40) @PropertyDef(label = "粮情分机", description = "仅仅粮情采集分机") private String grainSer; @Column(name = "TH_SER_", length = 40) @PropertyDef(label = "温湿度分机", description = "仓温仓湿的分机") private String thSer; @Column(name = "ES_SER_", length = 40) @PropertyDef(label = "能耗分机") private String esSer; @Column(name = "ES_SER_TAG_", length = 40) @PropertyDef(label = "多能耗分机") private String esSerTag; @Column(name = "GAS_SER_", length = 40) @PropertyDef(label = "气体分机") private String gasSer; @Column(name = "GAS_SER_TAG_", length = 40) @PropertyDef(label = "多气体分机") private String gasSerTag; @Column(name = "PEST_SER_", length = 40) @PropertyDef(label = "虫害分机") private String pestSer; @Column(name = "PEST_SER_TAG_", length = 40) @PropertyDef(label = "多虫害分机") private String pestSerTag; @Column(name = "VERB_SER_", length = 40) @PropertyDef(label = "通风分机") private String verbSer; @Column(name = "GRAIN_FREQ_", length = 4) @PropertyDef(label = "粮情保存频率", description = "默认一天多次") private String grainFreq; @Column(name = "TH_CONF_", length = 5) @PropertyDef(label = "仓温仓湿通道") private String thConf = "1"; @Column(name = "CABLE_RULE_", length = 20) @PropertyDef(label = "布线规则", description = "平方仓表示层行列,筒仓表示每圈的列数") private String cableRule; @Column(name = "CABLE_CIR_", length = 20) @PropertyDef(label = "筒仓层规则", description = "针对筒仓") private String cableCir; @Column(name = "CABLE_CONE_", length = 2) @PropertyDef(label = "筒仓锥形", description = "针对筒仓锥形,0=无判断,1=上锥形,2=下锥形") private String cableCone; @Column(name = "CABLE_START_") @PropertyDef(label = "电缆开始列") private int cableStart; @Column(name = "CABLE_END_") @PropertyDef(label = "电缆截至列") private int cableEnd; @Column(name = "START_ORIENTATION_", length = 20) @PropertyDef(label = "电缆起始方位", description = "默认右边(右边、右上、左边、左上)") private String startOrientation; @Column(name = "START_DIRECTION_", length = 20) @PropertyDef(label = "电缆起始方向", description = "默认纵向(纵向、横向)") private String startDirection; @Column(name = "START_POINT_", length = 20) @PropertyDef(label = "电缆起始点位", description = "默认顶部(顶部、底部)") private String startPoint; @Column(name = "START_CONVERT_", length = 20) @PropertyDef(label = "层行转换", description = "默认不转换(默认、顺时针、逆时针)") private String startConvert; @Column(name = "TEMP_MAX_") @PropertyDef(label = "温度上限") private Double tempMax; @Column(name = "ONLY_CUR_DEPOT_", length = 1) @PropertyDef(label = "显示当前", description = "默认不转换(默认、顺时针、逆时针)") private String onlyCurDepot = "Y"; @Column(name = "GAS_START_") @PropertyDef(label = "气体采集点开始") private int gasStart; @Column(name = "GAS_END_") @PropertyDef(label = "气体采集点截至") private int gasEnd; @Column(name = "N2_MAX_") @PropertyDef(label = "氮气上限") private Double n2Max; @Column(name = "CO2_MAX_") @PropertyDef(label = "二氧化碳上限") private Double co2Max; @Column(name = "O2_MAX_") @PropertyDef(label = "氧气上限") private Double o2Max; @Column(name = "PH3_MAX_") @PropertyDef(label = "磷化氢上限") private Double ph3Max; @Column(name = "PEST_START_") @PropertyDef(label = "虫害采集点开始") private int pestStart; @Column(name = "PEST_END_") @PropertyDef(label = "虫害采集点截至") private int pestEnd; @Column(name = "PEST_MAX_") @PropertyDef(label = "虫害上限") private Double pestMax; @Column(name = "IS_ONLY_TH_", length = 2) @PropertyDef(label = "粮情是否温湿度", description = "默认否。") private String isOnlyTH ; // 仓库名称 @Transient private String depotName; //仓库类型 @Transient private String depotType; }