package com.engine.salary.maintainer.salaryacct;

import com.engine.salary.util.valid.DataCheck;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 薪资补充核算的参数
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SalaryAcctSupplementParam {


    //前端传入
    /**
     * 补算方式，0按核算记录进行补充核算，1按账套进行补充核算
     */
    @DataCheck(require = true, message = "补算方式为空")
    private String type;

    /**
     * 按核算记录进行补充核算
     */
    private List<Long> salaryAcctRecordIds;
    private String salaryAcctRecordStrIds;

    /**
     * 按账套进行补充核算
     */
    private List<Long> salarySobIds;
    private String salarySobStrIds;

    /**
     * 待核算的项目
     */
    @DataCheck(require = true, message = "补算项目为空")
    private List<Long> salaryItemIds;
    private String salaryItemStrIds;

    //核算使用
    private Long salaryAcctRecordId;
}
