| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import annotation.Excel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsVo; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 考核结果展示 |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | * @author gonghl |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class CheckResultVO extends AbsVo { |
| | | public class CheckResultVO { |
| | | private Long id; |
| | | |
| | | /** 考核对象 */ |
| | | private Integer checkUnitId; |
| | | private String checkUnitName; |
| | | private Long unitId; |
| | | |
| | | /** 考核 */ |
| | | private String examineName; |
| | | @Excel(name = "考核对象") |
| | | private String unitName; |
| | | |
| | | /** 考核频率 */ |
| | | private String frequency; |
| | | private Long contractId; |
| | | |
| | | /** 考核范围 */ |
| | | private String examineRange; |
| | | @Excel(name = "运维合同") |
| | | private String contractName; |
| | | |
| | | /** 最终分数 */ |
| | | private BigDecimal checkScore; |
| | | private Long publishId; |
| | | |
| | | /** 系统打分 */ |
| | | private BigDecimal systemScore; |
| | | @Excel(name = "考核分数", scale = 2) |
| | | private BigDecimal score; |
| | | |
| | | /** 人工打分 */ |
| | | private BigDecimal manualScore; |
| | | |
| | | /** 考核时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime checkTime; |
| | | |
| | | /** 是否发布 */ |
| | | @Excel(name = "是否发布", readConverterExp = "0=未发布,1=已发布") |
| | | private Integer publish; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "考核时间", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date checkTime; |
| | | |
| | | private String deleted; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date updateTime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createStartTime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createEndTime; |
| | | |
| | | public static CheckResultVO getVoByEntity(@NonNull CheckResult entity, CheckResultVO vo) { |
| | | if(vo == null) { |
| | | if (vo == null) { |
| | | vo = new CheckResultVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |