package com.ycl.domain.vo; import com.ycl.system.domain.base.AbsVo; import com.ycl.domain.entity.ProjectEngineering; import java.util.List; import org.springframework.lang.NonNull; import org.springframework.beans.BeanUtils; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; /** * 项目工程展示 * * @author xp * @since 2025-02-26 */ @Data @ApiModel(value = "项目工程响应数据", description = "项目工程响应数据") public class ProjectEngineeringVO extends AbsVo { /** 项目id */ @ApiModelProperty("项目id") private Long projectInfoId; @ApiModelProperty("主项目名称") private String projectInfoName; /** 工程名称 */ @ApiModelProperty("工程名称") private String projectName; /** 项目推进类型 */ @ApiModelProperty("项目推进类型") private String projectType; /** 投资额 */ @ApiModelProperty("投资额") private String investmentAmount; /** 状态 */ @ApiModelProperty("状态") private String status; public static ProjectEngineeringVO getVoByEntity(@NonNull ProjectEngineering entity, ProjectEngineeringVO vo) { if(vo == null) { vo = new ProjectEngineeringVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }