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;
|
|
private Integer whichYear;
|
private Integer whichMonth;
|
private Integer latestMonth;
|
|
public static CalculateReportVO getVoByEntity(@NonNull CalculateReport entity, CalculateReportVO vo) {
|
if(vo == null) {
|
vo = new CalculateReportVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|