package com.cloud.user.vo;
|
|
import com.cloud.common.utils.BeanUtil;
|
import com.cloud.model.sys.BbEmployee;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* 人员VO
|
*/
|
@Data
|
public class BbEmployeeVO extends BbEmployee {
|
|
private static final long serialVersionUID = 1L;
|
|
private List<BbEmployeeRelationVO> list;
|
|
//教师合同类型
|
@ApiModelProperty(value = "教师合同类型")
|
private String compactType;
|
|
/**
|
* 得到BbEmployeeVO类型的对象
|
*/
|
public static BbEmployeeVO getBeanVO(BbEmployee bean) {
|
return BeanUtil.copy(BbEmployeeVO.class, bean);
|
}
|
|
/**
|
* 得到BbEmployee类型的对象
|
*/
|
public static BbEmployee getBean(BbEmployeeVO beanVO) {
|
return BeanUtil.copy(BbEmployeeVO.class, beanVO);
|
}
|
|
public static BbEmployeeVO beanVOFromJson(String jsonData) {
|
return BeanUtil.getBean(BbEmployeeVO.class, jsonData);
|
}
|
|
}
|