package com.ycl.domain.vo; import com.ycl.domain.entity.Plan; import java.util.List; import com.ycl.system.domain.base.AbsVo; 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 lhr * @since 2024-11-22 */ @Data @ApiModel(value = "项目计划表响应数据", description = "项目计划表响应数据") public class PlanVO extends AbsVo { /** 项目详情表id */ @ApiModelProperty("项目详情表id") private Long projectInfoId; /** 上报状态(0:已上报,1:未上报) */ @ApiModelProperty("上报状态(0:已上报,1:未上报)") private Integer reportStatus; /** 月度(0:已上报,1:未上报) */ @ApiModelProperty("月度(0:已上报,1:未上报)") private Integer monthStatus; /** 季度(0:已上报,1:未上报) */ @ApiModelProperty("季度(0:已上报,1:未上报)") private Integer seasonStatus; /** 年度(0:已上报,1:未上报) */ @ApiModelProperty("年度(0:已上报,1:未上报)") private Integer yearStatus; public static PlanVO getVoByEntity(@NonNull Plan entity, PlanVO vo) { if(vo == null) { vo = new PlanVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }