package com.changhong.epc.bean.count;
|
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
import java.io.Serializable;
|
import java.util.List;
|
import java.util.Objects;
|
|
@Data
|
@EqualsAndHashCode(of = {"mdCode", "alias"})
|
public class MasterInfo implements Serializable{
|
|
private static final long serialVersionUID = 1L;
|
|
private Integer mdId;
|
|
private String mdCode;
|
|
private Integer meId;
|
|
private String meCode;
|
|
private Object meVal;
|
|
/**
|
* 表单列别名
|
*/
|
private String alias;
|
/**
|
* 外键主数据定义、元素信息
|
*/
|
private List<MasterInfo> fkInfo;
|
|
public MasterInfo() {
|
super();
|
}
|
|
public MasterInfo(String mdCode, String meCode, Object meVal, String alias) {
|
super();
|
this.mdCode = mdCode;
|
this.meCode = meCode;
|
this.meVal = meVal;
|
this.alias = alias;
|
}
|
|
public MasterInfo(String mdCode, String meCode, Object meVal) {
|
super();
|
this.mdCode = mdCode;
|
this.meCode = meCode;
|
this.meVal = meVal;
|
}
|
|
public boolean valIsEmpty(){
|
return Objects.equals(meVal, "") || Objects.equals(meVal, null);
|
}
|
|
}
|