/*
 *    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.csp.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 2025-11-23 10:19:13
 */
@Data
@TableName("employee_registration_leave_insurance")
@Schema(description = "离职待办商险明细表")
public class EmployeeRegistrationLeaveInsurance {

	/**
	 * 主键ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ExcelProperty("主键ID")
	@Schema(description = "主键ID")
	private String id;
	/**
	 * 离职待办主表ID
	 */
	@ExcelAttribute(name = "离职待办主表ID", isNotEmpty = true, errorInfo = "离职待办主表ID不能为空", maxLength = 32)
	@NotBlank(message = "离职待办主表ID不能为空")
	@Length(max = 32, message = "离职待办主表ID不能超过32个字符")
	@ExcelProperty("离职待办主表ID")
	@Schema(description = "离职待办主表ID")
	private String leaveId;
	/**
	 * 商险ID
	 */
	@ExcelAttribute(name = "商险ID", maxLength = 32)
	@Length(max = 32, message = "商险ID不能超过32个字符")
	@ExcelProperty("商险ID")
	@Schema(description = "商险ID")
	private String insuranceId;
	/**
	 * 商险退保：0空1无需处理2待派单3发起失败4待减员5待办理6减员中8减员成功9减员退回
	 */
	@ExcelAttribute(name = "商险退保：0空1无需处理2待派单3发起失败4待减员5待办理6减员中8减员成功9减员退回", maxLength = 2)
	@Length(max = 2, message = "商险退保：0空1无需处理2待派单3发起失败4待减员5待办理6减员中8减员成功9减员退回不能超过2个字符")
	@ExcelProperty("商险退保：0空1无需处理2待派单3发起失败4待减员5待办理6减员中8减员成功9减员退回")
	@Schema(description = "商险退保：0空1无需处理2待派单3发起失败4待减员5待办理6减员中8减员成功9减员退回")
	private String doStatusInsurance;

}
