package com.ycl.platform.domain.vo;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.ycl.platform.base.AbsVo;
|
import com.ycl.platform.domain.entity.YwPeople;
|
import io.swagger.annotations.ApiModelProperty;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import lombok.Data;
|
import lombok.experimental.Accessors;
|
|
/**
|
* 运维人员展示
|
*
|
* @author xp
|
* @since 2024-03-04
|
*/
|
@Data
|
@Accessors(chain = true)
|
public class YwPeopleVO extends AbsVo {
|
|
/** 运维人员编号 */
|
private String ywPersonCode;
|
|
/** 运维人员姓名 */
|
private String ywPersonName;
|
|
/** 运维人员账号 */
|
private String ywPersonAccount;
|
|
/** 所属运维单位 */
|
private Integer belongUnit;
|
private String belongUnitName;
|
|
/** 添加数据的方式:手动、导入 */
|
private String addWay;
|
|
/** 联系电话 */
|
private String phone;
|
|
/** 备注 */
|
private String remark;
|
|
public static YwPeopleVO getVoByEntity(@NonNull YwPeople entity, YwPeopleVO vo) {
|
if(vo == null) {
|
vo = new YwPeopleVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|