package com.ycl.domain.vo; import com.ycl.system.domain.base.AbsVo; import com.ycl.domain.entity.ProjectInfoYearPlan; import java.math.BigDecimal; 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-18 */ @Data @ApiModel(value = "项目年度投资计划响应数据", description = "项目年度投资计划响应数据") public class ProjectInfoYearPlanVO extends AbsVo { /** 项目id */ @ApiModelProperty("项目id") private Long projectInfoId; /** 年份 */ @ApiModelProperty("年份") private String year; /** 年度投资金额 */ @ApiModelProperty("年度投资金额") private BigDecimal yearTotalMoney; /** 工程形象进度 */ @ApiModelProperty("工程形象进度") private String projectImageProgress; public static ProjectInfoYearPlanVO getVoByEntity(@NonNull ProjectInfoYearPlan entity, ProjectInfoYearPlanVO vo) { if(vo == null) { vo = new ProjectInfoYearPlanVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }