package com.yifu.cloud.plus.v1.yifu.social.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author fxj
 * @Date 2025/11/04
 * @Description
 * @Version 1.0
 */
@Data
public class SysBaseSetSocialInsertVo extends RowIndex implements Serializable {

	/**
	 * 社保户
	 */
	@ExcelAttribute(name = "社保户", isNotEmpty = true)
	@Schema(description = "社保户")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保户")
	private String departName;

	/**
	 * 社保缴纳地
	 */
	@ExcelAttribute(name = "社保缴纳地", isNotEmpty = true)
	@Schema(description = "社保缴纳地")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保缴纳地")
	private String provinceStr;

	/**
	 * 适用起始月份
	 */
	@ExcelAttribute(name = "适用起始月份", isNotEmpty = true)
	@Schema(description = "适用起始月份")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("适用起始月份")
	private String applyStartDate;

	/**
	 * 执行月份
	 */
	@ExcelAttribute(name = "执行月份", isNotEmpty = true)
	@Schema(description = "执行月份")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("执行月份")
	private String doMonth;

	/**
	 * 是否同一基数上下限:  0是；1否
	 */
	@ExcelAttribute(name = "是否同一基数上下限", isNotEmpty = true, readConverterExp = "0=是,1=否")
	@Schema(description = "是否同一基数上下限: 0是；1否")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("是否同一基数上下限")
	private String isSameBase;

	/**
	 * 养老基数上限
	 */
	@ExcelAttribute(name = "养老基数上限", isNotEmpty = true,max = "999999999.99",min = 0)
	@Schema(description = "养老基数上限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("养老基数上限")
	private BigDecimal upPersion;

	/**
	 * 养老基数下限
	 */
	@ExcelAttribute(name = "养老基数下限", isNotEmpty = true,max = "999999999.99",min = 0)
	@Schema(description = "养老基数下限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("养老基数下限")
	private BigDecimal lowerPersion;

	/**
	 * 工伤基数上限
	 */
	@ExcelAttribute(name = "工伤基数上限",max = "999999999.99",min = 0)
	@Schema(description = "工伤基数上限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("工伤基数上限")
	private BigDecimal upInjury;

	/**
	 * 工伤基数下限
	 */
	@ExcelAttribute(name = "工伤基数下限",max = "999999999.99",min = 0)
	@Schema(description = "工伤基数下限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("工伤基数下限")
	private BigDecimal lowerInjury;

	/**
	 * 医疗基数上限
	 */
	@ExcelAttribute(name = "医疗基数上限",max = "999999999.99",min = 0)
	@Schema(description = "医疗基数上限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医疗基数上限")
	private BigDecimal upMedical;

	/**
	 * 医疗基数下限
	 */
	@ExcelAttribute(name = "医疗基数下限",max = "999999999.99",min = 0)
	@Schema(description = "医疗基数下限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医疗基数下限")
	private BigDecimal lowerMedical;

	/**
	 * 生育基数上限
	 */
	@ExcelAttribute(name = "生育基数上限",max = "999999999.99",min = 0)
	@Schema(description = "生育基数上限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("生育基数上限")
	private BigDecimal upBirth;

	/**
	 * 生育基数下限
	 */
	@ExcelAttribute(name = "生育基数下限",max = "999999999.99",min = 0)
	@Schema(description = "生育基数下限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("生育基数下限")
	private BigDecimal lowerBirth;

	/**
	 * 失业基数上限
	 */
	@ExcelAttribute(name = "失业基数上限",max = "999999999.99",min = 0)
	@Schema(description = "失业基数上限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("失业基数上限")
	private BigDecimal upUnemployment;

	/**
	 * 失业基数下限
	 */
	@ExcelAttribute(name = "失业基数下限",max = "999999999.99",min = 0)
	@Schema(description = "失业基数下限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("失业基数下限")
	private BigDecimal lowerUnemployment;

	/**
	 * 大病基数上限
	 */
	@ExcelAttribute(name = "大病基数上限",max = "999999999.99",min = 0)
	@Schema(description = "大病基数上限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("大病基数上限")
	private BigDecimal upBig;

	/**
	 * 大病基数下限
	 */
	@ExcelAttribute(name = "大病基数下限",max = "999999999.99",min = 0)
	@Schema(description = "大病基数下限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("大病基数下限")
	private BigDecimal lowerBig;

	/**
	 * 大病是否收费:  0收取；1不收取
	 */
	@ExcelAttribute(name = "大病是否收费", isNotEmpty = true, readConverterExp = "0=是,1=否")
	@Schema(description = "大病是否收费:  0是；1否")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("大病是否收费")
	private String isIllness;

	/**
	 * 大病缴纳周期：收取方式  0.按年 1.按月
	 */
	@ExcelAttribute(name = "大病缴纳周期", readConverterExp = "0=按年,1=按月")
	@Schema(description = "大病缴纳周期：收取方式  0.按年 1.按月")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("大病缴纳周期")
	private String collectType;

	/**
	 * 收费模式：  0.立即收费 1.次年起收
	 */
	@ExcelAttribute(name = "收费模式", readConverterExp = "0=立即收费,1=次年起收")
	@Schema(description = "收费模式：  0.立即收费 1.次年起收")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("收费模式")
	private String collectTypeSub;

	/**
	 * 缴纳月份：周期为年--收取月份  1到12月份
	 */
	@ExcelAttribute(name = "缴纳月份",isDataId = true,dataType = ExcelAttributeConstants.SOCIAL_MONTH_TYPE, readConverterExp = "1=一月,2=二月,3=三月,4=四月,5=五月,6=六月,7=七月,8=八月,9=九月,10=十月,11=十一月,12=十二月")
	@Schema(description = "缴纳月份：周期为年--收取月份  1到12月份")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("缴纳月份")
	private String collectMoth;

	/**
	 * 缴纳方式：周期为月--取值方式 0.按定值1按比例
	 */
	@ExcelAttribute(name = "缴纳方式", readConverterExp = "0=按定值,1=按比例")
	@Schema(description = "缴纳方式：周期为月--取值方式 0.按定值1比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("缴纳方式")
	private String valueType;

	/**
	 * 单位大病金额
	 */
	@ExcelAttribute(name = "单位大病金额",max = "999999999.99",min = 0)
	@Schema(description = "单位大病金额")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("单位大病金额")
	private BigDecimal chargeCompany;

	/**
	 * 个人大病金额
	 */
	@ExcelAttribute(name = "个人大病金额",max = "999999999.99",min = 0)
	@Schema(description = "个人大病金额")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("个人大病金额")
	private BigDecimal chargePersonal;

	/**
	 * 单位医疗缴纳比例
	 */
	@ExcelAttribute(name = "单位医疗比例", isNotEmpty = true,isFloat  = true,max = "100.01",min = 0)
	@Schema(description = "单位医疗比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("单位医疗比例")
	private BigDecimal unitMedicalPro;

	/**
	 * 个人医疗比例
	 */
	@ExcelAttribute(name = "个人医疗比例", isNotEmpty = true,max = "100.01",min = 0)
	@Schema(description = "个人医疗比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("个人医疗比例")
	private BigDecimal personalMedicalPro;

	/**
	 * 单位生育缴纳比例
	 */
	@ExcelAttribute(name = "单位生育比例", isNotEmpty = true,max = "100.01",min = 0)
	@Schema(description = "单位生育比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("单位生育比例")
	private BigDecimal unitBirthPro;

	/**
	 * 单位养老缴纳比例
	 */
	@ExcelAttribute(name = "单位养老比例", isNotEmpty = true,max = "100.01",min = 0)
	@Schema(description = "单位养老比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("单位养老比例")
	private BigDecimal unitPersionPro;

	/**
	 * 个人养老比例
	 */
	@ExcelAttribute(name = "个人养老比例", isNotEmpty = true,max = "100.01",min = 0)
	@Schema(description = "个人养老比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("个人养老比例")
	private BigDecimal personalPersionPro;


	/**
	 * 单位工伤缴纳比例
	 */
	@ExcelAttribute(name = "单位工伤比例", isNotEmpty = true,max = "100.01",min = 0)
	@Schema(description = "单位工伤比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("单位工伤比例")
	private BigDecimal unitInjuryPro;

	/**
	 * 单位失业缴纳比例
	 */
	@ExcelAttribute(name = "单位失业比例", isNotEmpty = true,max = "100.01",min = 0)
	@Schema(description = "单位失业比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("单位失业比例")
	private BigDecimal unitUnemploymentPro;

	/**
	 * 个人失业比例
	 */
	@ExcelAttribute(name = "个人失业比例", isNotEmpty = true,max = "100.01",min = 0)
	@Schema(description = "个人失业比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("个人失业比例")
	private BigDecimal personalUnemploymentPro;

	/**
	 * 单位大病比例
	 */
	@ExcelAttribute(name = "单位大病比例",max = "100.01",min = 0)
	@Schema(description = "单位大病比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("单位大病比例")
	private BigDecimal payCompanyPro;

	/**
	 * 个人大病比例
	 */
	@ExcelAttribute(name = "个人大病比例",max = "100.01",min = 0)
	@Schema(description = "个人大病比例")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("个人大病比例")
	private BigDecimal payPersonalPro;

	// ==================== 社保类补缴险种：养老、工伤、失业 ====================
	/**
	 * 社保是否可补缴 0:是，1:否
	 */
	@ExcelAttribute(name = "社保是否可补缴",isNotEmpty = true, readConverterExp = "0=是,1=否")
	@Schema(description = "社保是否可补缴 0:是，1:否")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保是否可补缴")
	private String canOverpayPension;
	/**
	 * 【社保整合字段--养老、工伤、失业】
	 */
	@ExcelAttribute(name = "社保类补缴险种")
	@Schema(description = "社保类补缴险种")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保类补缴险种")
	private String insurancePension;
	/**
	 * 社保是否含起缴当月 0:是，1:否
	 */
	@ExcelAttribute(name = "社保是否含起缴当月", readConverterExp = "0=是,1=否")
	@Schema(description = "社保是否含起缴当月 0:是，1:否")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保是否含起缴当月")
	private String haveThisMonthPension;

	/**
	 * 社保最大补缴期限
	 */
	@ExcelAttribute(name = "社保最大补缴期限", readConverterExp = "1=一个月,2=二个月,3=三个月,4=四个月,5=五个月,6=六个月,7=七个月,8=八个月,9=九个月,10=十个月,11=十一个月,12=十二个月")
	@Schema(description = "社保最大补缴期限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保最大补缴期限")
	private String overpayNumberPension;

	/**
	 * 社保补缴基数类型 0:最新基数，1:当期基数，2:自定义基数
	 */
	@ExcelAttribute(name = "社保补缴基数", readConverterExp = "0=最新基数,1=当期基数")
	@Schema(description = "社保补缴基数类型 0:最新基数，1:当期基数")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保补缴基数")
	private String baseTypePension;

	/**
	 * 社保补缴政策
	 */
	@ExcelAttribute(name = "社保补缴政策")
	@Schema(description = "社保补缴政策")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("社保补缴政策")
	private String payPolicyPension;

	// ==================== 医保类补缴险种：医疗、生育、大病 ====================
	/**
	 * 医保是否可补缴 0:是，1:否
	 */
	@ExcelAttribute(name = "医保是否可补缴",isNotEmpty = true, readConverterExp = "0=是,1=否")
	@Schema(description = "医保是否可补缴 0:是，1:否")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医保是否可补缴")
	private String canOverpayMedical;
	/**
	 * 医保整合字段-医疗、生育、大病
	 */
	@ExcelAttribute(name = "医保类补缴险种")
	@Schema(description = "医保类补缴险种")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医保类补缴险种")
	private String insurancePensionMedical;
	/**
	 * 医保是否含起缴当月 0:是，1:否
	 */
	@ExcelAttribute(name = "医保是否含起缴当月", readConverterExp = "0=是,1=否")
	@Schema(description = "医保是否含起缴当月 0:是，1:否")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医保是否含起缴当月")
	private String haveThisMonthMedical;

	/**
	 * 医保最大补缴期限
	 */
	@ExcelAttribute(name = "医保最大补缴期限", readConverterExp = "1=一个月,2=二个月,3=三个月,4=四个月,5=五个月,6=六个月,7=七个月,8=八个月,9=九个月,10=十个月,11=十一个月,12=十二个月")
	@Schema(description = "医保最大补缴期限")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医保最大补缴期限")
	private String overpayNumberMedical;

	/**
	 * 医保补缴基数类型 0:最新基数，1:当期基数，2:自定义基数
	 */
	@ExcelAttribute(name = "医保补缴基数", readConverterExp = "0=最新基数,1=当期基数")
	@Schema(description = "医保补缴基数 0:最新基数，1:当期基数")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医保补缴基数")
	private String baseTypeMedical;

	/**
	 * 医保补缴政策
	 */
	@ExcelAttribute(name = "医保补缴政策")
	@Schema(description = "医保补缴政策")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("医保补缴政策")
	private String payPolicyMedical;
}
