/*
 *    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.social.vo;

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

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 社保医疗截止日配置
 *
 * @author fxj
 * @date 2024-05-08 11:52:09
 */
@Data
public class TSocialDeadlineInfoVo extends RowIndex implements Serializable {

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@NotBlank(message = "id 不能为空")
	@Length(max = 32, message = "id 不能超过32 个字符")
	@ExcelAttribute(name = "id", isNotEmpty = true, errorInfo = "id 不能为空", maxLength = 32)
	@Schema(description = "id")
	@ExcelProperty("id")
	private String id;
	/**
	 * 月份
	 */
	@NotBlank(message = "月份 不能为空")
	@Length(max = 6, message = "月份 不能超过6 个字符")
	@ExcelAttribute(name = "月份", isNotEmpty = true, errorInfo = "月份 不能为空", maxLength = 6)
	@Schema(description = "月份")
	@ExcelProperty("月份")
	private String month;
	/**
	 * 省
	 */
	@NotBlank(message = "省 不能为空")
	@Length(max = 10, message = "省 不能超过10 个字符")
	@ExcelAttribute(name = "省", isNotEmpty = true, errorInfo = "省 不能为空", maxLength = 10)
	@Schema(description = "省")
	@ExcelProperty("省")
	private String province;
	/**
	 * 市
	 */
	@Length(max = 10, message = "市 不能超过10 个字符")
	@ExcelAttribute(name = "市", maxLength = 10)
	@Schema(description = "市")
	@ExcelProperty("市")
	private String city;
	/**
	 * 县
	 */
	@Length(max = 10, message = "县 不能超过10 个字符")
	@ExcelAttribute(name = "县", maxLength = 10)
	@Schema(description = "县")
	@ExcelProperty("县")
	private String town;
	/**
	 * 社保截止日
	 */
	@NotBlank(message = "社保截止日 不能为空")
	@ExcelAttribute(name = "社保截止日", isNotEmpty = true, errorInfo = "社保截止日 不能为空", isDate = true)
	@Schema(description = "社保截止日")
	@ExcelProperty("社保截止日")
	private Date socialEndDate;
	/**
	 * 医疗截止日
	 */
	@NotBlank(message = "医疗截止日 不能为空")
	@ExcelAttribute(name = "医疗截止日", isNotEmpty = true, errorInfo = "医疗截止日 不能为空", isDate = true)
	@Schema(description = "医疗截止日")
	@ExcelProperty("医疗截止日")
	private Date medicalEndDate;
	/**
	 * 创建人id
	 */
	@Length(max = 32, message = "创建人id 不能超过32 个字符")
	@ExcelAttribute(name = "创建人id", maxLength = 32)
	@Schema(description = "创建人id")
	@ExcelProperty("创建人id")
	private String createBy;
	/**
	 * 创建人姓名
	 */
	@Length(max = 32, message = "创建人姓名 不能超过32 个字符")
	@ExcelAttribute(name = "创建人姓名", maxLength = 32)
	@Schema(description = "创建人姓名")
	@ExcelProperty("创建人姓名")
	private String createName;
	/**
	 * 创建时间
	 */
	@ExcelAttribute(name = "创建时间", isDate = true)
	@Schema(description = "创建时间")
	@ExcelProperty("创建时间")
	private Date createTime;
	/**
	 * 更新人id
	 */
	@Length(max = 32, message = "更新人id 不能超过32 个字符")
	@ExcelAttribute(name = "更新人id", maxLength = 32)
	@Schema(description = "更新人id")
	@ExcelProperty("更新人id")
	private String updateBy;
	/**
	 * 更新人
	 */
	@Length(max = 32, message = "更新人 不能超过32 个字符")
	@ExcelAttribute(name = "更新人", maxLength = 32)
	@Schema(description = "更新人")
	@ExcelProperty("更新人")
	private String updateName;
	/**
	 * 更新时间
	 */
	@ExcelAttribute(name = "更新时间", isDate = true)
	@Schema(description = "更新时间")
	@ExcelProperty("更新时间")
	private Date updateTime;
	/**
	 * 启用禁用：0启用  1 禁用
	 */
	@Length(max = 1, message = "启用禁用：0启用  1 禁用 不能超过1 个字符")
	@ExcelAttribute(name = "启用禁用：0启用  1 禁用", maxLength = 1)
	@Schema(description = "启用禁用：0启用  1 禁用")
	@ExcelProperty("启用禁用：0启用  1 禁用")
	private String status;

}
