package com.ycl.domain.vo;
|
|
|
import com.ycl.domain.entity.ProgressPlan;
|
import com.ycl.system.domain.base.AbsVo;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.beans.BeanUtils;
|
import org.springframework.lang.NonNull;
|
|
import java.util.Date;
|
|
/**
|
* 项目计划进度展示
|
*
|
* @author lhr
|
* @since 2024-11-22
|
*/
|
@Data
|
@ApiModel(value = "项目计划进度响应数据", description = "项目计划进度响应数据")
|
public class ProgressPlanVO 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;
|
|
/** 创建时间 */
|
@ApiModelProperty("创建时间")
|
private Date gmtCreateTime;
|
|
/** 修改时间 */
|
@ApiModelProperty("修改时间")
|
private Date gmtUpdateTime;
|
|
public static ProgressPlanVO getVoByEntity(@NonNull ProgressPlan entity, ProgressPlanVO vo) {
|
if(vo == null) {
|
vo = new ProgressPlanVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|