龚焕茏
2024-04-29 e547993a3c78d0bd75f3fdef4a9878e180d73d36
ycl-pojo/src/main/java/com/ycl/platform/domain/vo/CheckResultVO.java
@@ -1,5 +1,6 @@
package com.ycl.platform.domain.vo;
import annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.domain.entity.CheckResult;
import lombok.Data;
@@ -20,25 +21,37 @@
    private Long unitId;
    @Excel(name = "考核对象")
    private String unitName;
    private Long contractId;
    @Excel(name = "运维合同")
    private String contractName;
    private Long publishId;
    @Excel(name = "考核分数", scale = 2)
    private BigDecimal score;
    @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) {
            vo = new CheckResultVO();