xiangpei
2024-04-26 061b711dc16212c651ce6047145420c50728f213
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 enumeration.general.CalculateReportStatusEnum;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import lombok.Data;
 
/**
 * 核算报告展示
 *
 * @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 String updateBy;
 
    /** 最近一次核算时间 */
    private LocalDateTime latestTime;
 
    /** 能否发布 */
    private Boolean canPublish;
 
    private CalculateReportStatusEnum status;
 
    /** 最新一次扣款 */
    private BigDecimal latestDeductMoney;
 
    /** 明细 */
    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;
    }
 
}