package com.changhong.epc.bean.tenant.master;
|
|
import com.changhong.epc.bean.tenant.sunCloud.GetMasterDefine;
|
import com.changhong.epc.constter.base.BaseBean;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.NoArgsConstructor;
|
|
import javax.persistence.Column;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
import java.io.Serializable;
|
import java.math.BigInteger;
|
import java.util.List;
|
|
/**
|
* 主数据定义表
|
* @ClassName: MasterDefine
|
* @author [九鼎联合科技]
|
* @date 2017年08月28日 上午11:52:33
|
*/
|
@Table(name="epc_master_define_{rule}")
|
@Data
|
@EqualsAndHashCode(callSuper=true)
|
@NoArgsConstructor
|
public class MasterDefine extends BaseBean implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
/**
|
* 主数据定义代码
|
* 表字段:CODE
|
*/
|
@Column(name="CODE")
|
private String code;
|
|
/**
|
* 主数据定义名称
|
* 表字段:NAME
|
*/
|
@Column(name="NAME")
|
private String name;
|
|
/**
|
* 主数据定义说明
|
* 表字段:DESCRIPTION
|
*/
|
@Column(name="DESCRIPTION")
|
private String description;
|
|
/**
|
* 1:维度,2:其他主数据,3:费用类型
|
* 表字段:TYPE
|
*/
|
@Column(name="TYPE")
|
private String type;
|
|
/**
|
*
|
* 表字段:DEL_FLAG
|
*/
|
@Column(name="DEL_FLAG")
|
private Integer delFlag;
|
|
/**
|
* 备用字段1
|
* 表字段:DEF1
|
*/
|
@Column(name="DEF1")
|
private String def1;
|
|
/**
|
* 备用字段2
|
* 表字段:DEF2
|
*/
|
@Column(name="DEF2")
|
private String def2;
|
|
/**
|
* 备用字段3
|
* 表字段:DEF3
|
*/
|
@Column(name="DEF3")
|
private String def3;
|
|
/**
|
* 备用字段4
|
* 表字段:DEF4
|
*/
|
@Column(name="DEF4")
|
private String def4;
|
|
/**
|
* 备用字段5
|
* 表字段:DEF5
|
*/
|
@Column(name="DEF5")
|
private String def5;
|
|
/**
|
* 租户ID
|
* 表字段:TENANT_ID
|
*/
|
@Column(name="TENANT_ID")
|
private BigInteger tenantId;
|
|
@Column(name="config_type")
|
private String configType;
|
|
@Transient
|
private List<CodeAndAlias> params;
|
|
public MasterDefine(GetMasterDefine ge){
|
this.code = ge.getMasDataDefineCode();
|
this.name = ge.getMasDataDefineName();
|
this.type = ge.getMasDataDefineType();
|
this.delFlag = 0;
|
this.initParam();
|
}
|
|
public static MasterDefine of(String code){
|
MasterDefine masterDefine = new MasterDefine();
|
masterDefine.setCode(code);
|
return masterDefine;
|
}
|
}
|