/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the yifu4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.yifu.cloud.plus.v1.yifu.salary.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 工资缴费库-同步表（同步完成后真删除数据）
 *
 * @author hgw
 * @date 2022-08-05 11:40:14
 */
@Data
@TableName("m_salary_payment_res")
@Schema(description = "工资缴费库-同步表（同步完成后真删除数据）")
public class MSalaryPaymentRes {

	/**
	 * 缴费库id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ExcelProperty("缴费库id")
	private String id;
	/**
	 * 结算主体id
	 */
	@ExcelAttribute(name = "结算主体id", isNotEmpty = true, errorInfo = "结算主体id不能为空", maxLength = 50)
	@NotBlank(message = "结算主体id不能为空")
	@Length(max = 50, message = "结算主体id不能超过50个字符")
	@ExcelProperty("结算主体id")
	private String deptId;
	/**
	 * 工资社保结算状态  0: 未结算  1:  已结算
	 */
	@ExcelAttribute(name = "工资社保结算状态  0: 未结算  1:  已结算", maxLength = 1)
	@Length(max = 1, message = "工资社保结算状态  0: 未结算  1:  已结算不能超过1个字符")
	@ExcelProperty("工资社保结算状态  0: 未结算  1:  已结算")
	private String salarySocialFlag;
	/**
	 * 工资公积金结算状态  0: 未结算  1: 已结算
	 */
	@ExcelAttribute(name = "工资公积金结算状态  0: 未结算  1: 已结算", maxLength = 1)
	@Length(max = 1, message = "工资公积金结算状态  0: 未结算  1: 已结算不能超过1个字符")
	@ExcelProperty("工资公积金结算状态  0: 未结算  1: 已结算")
	private String salaryFundFlag;

}
