fuliqi
2024-04-26 7a7dbbd34179b79caf3b74dedf2d5b84f30d0c05
ycl-pojo/src/main/java/com/ycl/platform/domain/vo/CalculateReportVO.java
New file
@@ -0,0 +1,62 @@
package com.ycl.platform.domain.vo;
import com.ycl.platform.base.AbsVo;
import com.ycl.platform.domain.entity.CalculateReport;
import java.math.BigDecimal;
import java.util.List;
import java.time.LocalDateTime;
import com.ycl.platform.domain.form.CalculateRecordForm;
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;
/**
 * 核算报告展示
 *
 * @author xp
 * @since 2024-04-23
 */
@Data
public class CalculateReportVO extends AbsVo {
    /** 合同 */
    private Integer contractId;
    /** 运维单位 */
    private String unitName;
    /** 合同名称 */
    private String contractName;
    /** 核算日期 */
    private LocalDateTime calculateTime;
    /** 扣减总金额 */
    private BigDecimal deductMoney;
    /** 哪年的 */
    private Integer whichYear;
    /** 哪月的 */
    private Integer whichMonth;
    /** 修改人 */
    private Long updateBy;
    /** 明细 */
    private List<CalculateRecordVO> recordList;
    public static CalculateReportVO getVoByEntity(@NonNull CalculateReport entity, CalculateReportVO vo) {
        if(vo == null) {
            vo = new CalculateReportVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
}