/*
 *    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.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 com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 户截止日配置表
 *
 * @author fxj
 * @date 2025-12-11 14:19:54
 */
@Data
@TableName("t_house_hold_limit")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "户截止日配置表")
public class THouseHoldLimit extends BaseEntity {

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ExcelProperty("主键")
	@Schema(description = "主键")
	private String id;
	/**
	 * 户名
	 */
	@ExcelAttribute(name = "户名", maxLength = 50)
	@Length(max = 50, message = "户名不能超过50个字符")
	@ExcelProperty("户名")
	@Schema(description = "户名")
	private String name;
	/**
	 * 户类型：0社保 1公积金
	 */
	@ExcelAttribute(name = "户类型：0社保 1公积金", isNotEmpty = true, errorInfo = "户类型：0社保 1公积金不能为空", maxLength = 255)
	@NotBlank(message = "户类型：0社保 1公积金不能为空")
	@Length(max = 255, message = "户类型：0社保 1公积金不能超过255个字符")
	@ExcelProperty("户类型：0社保 1公积金")
	@Schema(description = "户类型：0社保 1公积金")
	private String type;
	/**
	 * 缴纳地-省
	 */
	@ExcelAttribute(name = "缴纳地-省", maxLength = 10)
	@Length(max = 10, message = "缴纳地-省不能超过10个字符")
	@ExcelProperty("缴纳地-省")
	@Schema(description = "缴纳地-省")
	private String province;
	/**
	 * 缴纳地-市
	 */
	@ExcelAttribute(name = "缴纳地-市", maxLength = 10)
	@Length(max = 10, message = "缴纳地-市不能超过10个字符")
	@ExcelProperty("缴纳地-市")
	@Schema(description = "缴纳地-市")
	private String city;
	/**
	 * 缴纳地-县
	 */
	@ExcelAttribute(name = "缴纳地-县", maxLength = 10)
	@Length(max = 10, message = "缴纳地-县不能超过10个字符")
	@ExcelProperty("缴纳地-县")
	@Schema(description = "缴纳地-县")
	private String town;
	/**
	 * 户ID
	 */
	@ExcelAttribute(name = "户ID", maxLength = 32)
	@Length(max = 32, message = "户ID不能超过32个字符")
	@ExcelProperty("户ID")
	@Schema(description = "户ID")
	private String houseHoldId;
	/**
	 * 派增截止(日)
	 */
	@ExcelAttribute(name = "派增截止(日)", isNotEmpty = true, errorInfo = "派增截止(日)不能为空", maxLength = 2)
	@NotBlank(message = "派增截止(日)不能为空")
	@Length(max = 2, message = "派增截止(日)不能超过2个字符")
	@ExcelProperty("派增截止(日)")
	@Schema(description = "派增截止(日)")
	private String deadLineDay;
	/**
	 * 派增办理规则：0当月办当月生效 1 当月办次月生效
	 */
	@ExcelAttribute(name = "派增办理规则：0当月办当月生效 1 当月办次月生效", isNotEmpty = true, errorInfo = "派增办理规则：0当月办当月生效 1 当月办次月生效不能为空", maxLength = 2)
	@NotBlank(message = "派增办理规则：0当月办当月生效 1 当月办次月生效不能为空")
	@Length(max = 2, message = "派增办理规则：0当月办当月生效 1 当月办次月生效不能超过2个字符")
	@ExcelProperty("派增办理规则：0当月办当月生效 1 当月办次月生效")
	@Schema(description = "派增办理规则：0当月办当月生效 1 当月办次月生效")
	private String addHandleRule;


}
