package com.changhong.epc.rely.api.bean;
|
|
import com.changhong.epc.constter.base.BaseBean;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.util.Arrays;
|
import java.util.List;
|
|
/**
|
* 租户(返回字段,包含公司)
|
* @author liush
|
*
|
*/
|
@Data
|
public class Tenant extends BaseBean implements Serializable {
|
|
/**
|
* 租户名称
|
*/
|
private String name;
|
|
/**
|
* 租户code
|
*/
|
private String code;
|
|
/**
|
* 组织机构code
|
*/
|
private String orgCode;
|
|
/**
|
* @Author WangYX
|
* @Description 租户状态
|
* @Date 2019/3/26 3:33 PM
|
*/
|
private Integer state;
|
|
/**
|
* 租户名下公司
|
*/
|
private List<Company> companys;
|
|
public Tenant(Tenant tenant, Company company) {
|
super();
|
setId(tenant.getId());
|
this.name = tenant.name;
|
this.code = tenant.code;
|
this.orgCode = tenant.orgCode;
|
if(company != null){
|
this.companys = Arrays.asList(company);
|
}
|
}
|
|
public Tenant() {
|
super();
|
}
|
|
|
|
|
|
}
|