/*
 *    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;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 0申报
 *
 * @author hgw
 * @date 2026-03-18 14:47:00
 */
@Data
@TableName("t_salary_zero_2026")
@Schema(description = "0申报")
public class TSalaryZero {

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ExcelProperty("主键")
	@Schema(description = "主键")
	private String id;
	/**
	 * 员工姓名
	 */
	@NotBlank(message = "员工姓名 不能为空")
	@Length(max = 50, message = "员工姓名 不能超过50 个字符")
	@ExcelAttribute(name = "员工姓名", isNotEmpty = true, errorInfo = "员工姓名 不能为空", maxLength = 50)
	@Schema(description = "员工姓名")
	@ExcelProperty("员工姓名")
	private String empName;
	/**
	 * 身份证号
	 */
	@NotBlank(message = "身份证号 不能为空")
	@Length(max = 25, message = "身份证号 不能超过25 个字符")
	@ExcelAttribute(name = "身份证号", isNotEmpty = true, errorInfo = "身份证号 不能为空", maxLength = 25)
	@Schema(description = "身份证号")
	@ExcelProperty("身份证号")
	private String empIdcard;
	/**
	 * 手机号码
	 */
	@ExcelAttribute(name = "手机号码", maxLength = 11)
	@Length(max = 11, message = "手机号码不能超过11个字符")
	@ExcelProperty("手机号码")
	@Schema(description = "手机号码")
	private String empPhone;
	/**
	 * 项目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 deptId;
	/**
	 * 项目名称
	 */
	@ExcelAttribute(name = "项目名称", isNotEmpty = true, errorInfo = "项目名称不能为空", maxLength = 50)
	@NotBlank(message = "项目名称不能为空")
	@Length(max = 50, message = "项目名称不能超过50个字符")
	@ExcelProperty("项目名称")
	@Schema(description = "项目名称")
	private String deptName;
	/**
	 * 项目编码
	 */
	@ExcelAttribute(name = "项目编码", isNotEmpty = true, errorInfo = "项目编码不能为空", maxLength = 50)
	@NotBlank(message = "项目编码不能为空")
	@Length(max = 50, message = "项目编码不能超过50个字符")
	@ExcelProperty("项目编码")
	@Schema(description = "项目编码")
	private String deptNo;
	/**
	 * 结算月份
	 */
	@ExcelAttribute(name = "结算月份", isNotEmpty = true, errorInfo = "结算月份不能为空", maxLength = 6)
	@NotBlank(message = "结算月份不能为空")
	@Length(max = 6, message = "结算月份不能超过6个字符")
	@ExcelProperty("结算月份")
	@Schema(description = "结算月份")
	private String settleMonth;
	/**
	 * 封面抬头
	 */
	@NotBlank(message = "封面抬头不能为空")
	@ExcelAttribute(name = "封面抬头", isNotEmpty = true, errorInfo = "封面抬头不能为空", maxLength = 50)
	@Length(max = 50, message = "封面抬头不能超过50个字符")
	@ExcelProperty("封面抬头")
	@Schema(description = "封面抬头")
	private String invoiceTitle;
	/**
	 * 减除费用
	 */
	@NotNull(message = "减除费用不能为空")
	@ExcelAttribute(name = "减除费用", isNotEmpty = true, errorInfo = "减除费用不能为空")
	@ExcelProperty("减除费用")
	@Schema(description = "减除费用")
	private BigDecimal costReduction;
	/**
	 * 计税月份
	 */
	@NotBlank(message = "计税月份 不能为空")
	@Length(max = 6, message = "计税月份 不能超过6 个字符")
	@ExcelAttribute(name = "计税月份", isNotEmpty = true, errorInfo = "计税月份 不能为空", maxLength = 6)
	@ExcelProperty("计税月份")
	@Schema(description = "计税月份")
	private String taxMonth;
	/**
	 * 数据来源：1：项目；2商险；3导入
	 */
	@ExcelAttribute(name = "数据来源：1：项目；2商险；3导入", isNotEmpty = true, errorInfo = "数据来源：1：项目；2商险；3导入不能为空", maxLength = 1)
	@NotBlank(message = "数据来源：1：项目；2商险；3导入不能为空")
	@Length(max = 1, message = "数据来源：1：项目；2商险；3导入不能超过1个字符")
	@ExcelProperty("数据来源：1：项目；2商险；3导入")
	@Schema(description = "数据来源：1：项目；2商险；3导入")
	private String dataSource;
	/**
	 * 导入人
	 */
	@ExcelAttribute(name = "导入人", maxLength = 10)
	@Length(max = 10, message = "导入人不能超过10个字符")
	@ExcelProperty("导入人")
	@Schema(description = "导入人")
	private String importerName;
	/**
	 * 页面假删除0：正常；1：已删除；2存在报账假删除
	 */
	@ExcelAttribute(name = "页面假删除0：正常；1：已删除；2存在报账假删除", isNotEmpty = true, errorInfo = "页面假删除0：正常；1：已删除；2存在报账假删除不能为空")
	@NotNull(message = "页面假删除0：正常；1：已删除；2存在报账假删除不能为空")
	@ExcelProperty("页面假删除0：正常；1：已删除；2存在报账假删除")
	@Schema(description = "页面假删除0：正常；1：已删除；2存在报账假删除")
	private Integer deleteFlag;
	/**
	 * 创建时间
	 */
	@ExcelAttribute(name = "创建时间", isDate = true)
	@ExcelProperty("创建时间")
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

}
