package com.engine.salary.entity.salaryacct.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Accessors(chain = true)
@AllArgsConstructor
public class SalaryAcctRateDTO {

    //"缓存索引")
    private String index;
    //"提示信息")
    private String msg;
    //"状态")
    private boolean status;
    //"是否已经完成")
    private boolean finish;
    //"总数")
    private Integer totalQty;
    //"已经计算的数量")
    private Integer calcQty;
    //"进度")
    private BigDecimal rate;
    //"校验异常")
    private boolean checkStatus;

    public SalaryAcctRateDTO(String index) {
        this.index = index;
        this.msg = "";
        this.status = true;
        this.finish = false;
        this.totalQty = 1;
        this.calcQty = 0;
        this.rate = BigDecimal.ZERO;
        this.checkStatus = true;
    }
}
