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

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

import java.time.YearMonth;

/**
 * 薪资核算基本信息保存参数
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
//薪资核算基本信息保存参数
public class SalaryAcctRecordSaveParam {

    //薪资所属月
    @DataCheck(require = true, message = "薪资所属月格式错误")
    private YearMonth salaryMonth;

    private String salaryMonthStr;

    //薪资账套id
    @DataCheck(require = true, message = "薪资账套ID不允许为空")
    private Long salarySobId;

    //备注
    @DataCheck(max = 80, message = "备注不能超过80个字符")
    private String description;
}
