package com.ycl.domain.vo; import com.ycl.domain.entity.ProjectOvertimeTimes; 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; /** * 展示 * * @author zxl * @since 2025-04-01 */ @Data @ApiModel(value = "响应数据", description = "响应数据") public class ProjectOvertimeTimesVO extends AbsVo { /** 任务超时数*/ @ApiModelProperty("任务超时数") private Integer taskOvertimeNum; /** 流程实例id*/ @ApiModelProperty("流程实例id") private String processInsId; /** 项目id*/ @ApiModelProperty("项目id") private String projectId; /** 项目类型*/ @ApiModelProperty("项目类型") private String projectType; public static ProjectOvertimeTimesVO getVoByEntity(@NonNull ProjectOvertimeTimes entity, ProjectOvertimeTimesVO vo) { if(vo == null) { vo = new ProjectOvertimeTimesVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }