package cn.iocoder.yudao.module.bpm.controller.admin.oa.vo.salary;

import cn.iocoder.yudao.framework.common.pojo.UploadUserFile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 薪资付款申请 创建 Request VO
 *
 * @author 符溶馨
 */
@Schema(description = "管理后台 - 薪资付款申请创建 Request VO")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
public class BpmOASalaryCreateReqVO {

    @Schema(description = "申请原因", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "申请原因不能为空")
    private String reason;

    @Schema(description = "付款公司")
    private Long companyDeptId;

    @Schema(description = "付款工厂编号")
    private Long factoryId;

    @Schema(description = "付款总额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "付款总额不能为空")
    private BigDecimal paymentTotal;

    @Schema(description = "支付对象")
    private String paymentRecipient;

    @Schema(description = "流程实例编号")
    private String processInstanceId;

    @Schema(description = "状态-参见 bpm_process_instance_result 枚举")
    private Integer result;

    @Schema(description = "上传文件",  requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "附件不能为空")
    private List<UploadUserFile> fileItems;
}
