package com.ycl.platform.domain.vo; import annotation.Excel; import com.ycl.platform.base.AbsVo; import com.ycl.platform.domain.entity.YwUnit; 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 YwUnitVO extends AbsVo { @Excel(name = "单位编码") private String unitCode; @Excel(name = "单位名称") private String unitName; @Excel(name = "单位联系人") private String unitContact; @Excel(name = "单位联系人电话") private String unitContactPhone; @Excel(name = "单位管理员账号") private String unitAdminAccount; @Excel(name = "备注") private String remark; private Integer workOrderCount; public static YwUnitVO getVoByEntity(@NonNull YwUnit entity, YwUnitVO vo) { if(vo == null) { vo = new YwUnitVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }