/*
 *    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.archives.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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

/**
 * 合同续签确认信息--批量发起明细   系统会自动拉取当前前端客服+“预计合同发起时间”为空的或为今日及今日之前的，续签状态为“待发起、发起失败、审核不通过、签署失败”的合同信息；
 *
 * @author fxj
 * @date 2026-02-05 15:45:40
 */
@Data
public class TEmployeeContractPreNewDetailVo {

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ExcelProperty("id")
	@Schema(description = "id")
	private String id;
	/**
	 * 项目名称
	 */
	@ExcelAttribute(name = "项目名称", maxLength = 50)
	@Length(max = 50, message = "项目名称不能超过50个字符")
	@ExcelProperty("项目名称")
	@Schema(description = "项目名称")
	private String deptName;
	/**
	 * 项目编码
	 */
	@ExcelAttribute(name = "项目编码", isNotEmpty = true, errorInfo = "项目编码不能为空", maxLength = 30)
	@NotBlank(message = "项目编码不能为空")
	@Length(max = 30, message = "项目编码不能超过30个字符")
	@ExcelProperty("项目编码")
	@Schema(description = "项目编码")
	private String deptNo;
	/**
	 * 项目id
	 */
	@ExcelAttribute(name = "项目id", maxLength = 36)
	@Length(max = 36, message = "项目id不能超过36个字符")
	@ExcelProperty("项目id")
	@Schema(description = "项目id")
	private String deptId;
	/**
	 * 员工姓名
	 */
	@ExcelAttribute(name = "员工姓名", maxLength = 30)
	@Length(max = 30, message = "员工姓名不能超过30个字符")
	@ExcelProperty("员工姓名")
	@Schema(description = "员工姓名")
	private String employeeName;
	/**
	 * 身份证号
	 */
	@ExcelAttribute(name = "身份证号", isNotEmpty = true, errorInfo = "身份证号不能为空", maxLength = 18)
	@NotBlank(message = "身份证号不能为空")
	@Length(max = 18, message = "身份证号不能超过18个字符")
	@ExcelProperty("身份证号")
	@Schema(description = "身份证号")
	private String empIdcard;

	/**
	 * 上一份合同起止日期
	 */
	@ExcelAttribute(name = "上一份合同起止日期", isDate = true)
	@ExcelProperty("上一份合同起止日期")
	@Schema(description = "上一份合同起止日期")
	private String lastContractDate;
	/**
	 * 就职岗位
	 */
	@ExcelAttribute(name = "就职岗位", maxLength = 50)
	@Length(max = 50, message = "就职岗位不能超过50个字符")
	@ExcelProperty("就职岗位")
	@Schema(description = "就职岗位")
	private String position;


	/**
	 * 合同类型  标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同
	 */
	@ExcelAttribute(name = "合同类型", maxLength = 8)
	@Length(max = 8, message = "合同类型不能超过8个字符")
	@ExcelProperty("合同类型")
	@Schema(description = "合同类型  标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同")
	private String contractType;
	/**
	 * 签署甲方
	 */
	@ExcelAttribute(name = "签署甲方", maxLength = 50)
	@Length(max = 50, message = "签署甲方不能超过50个字符")
	@ExcelProperty("签署甲方")
	@Schema(description = "签署甲方")
	private String signatory;

	/**
	 * 签署方式1线下签0电子签
	 */
	@ExcelAttribute(name = "签署方式", maxLength = 1)
	@Length(max = 1, message = "签署方式不能超过1个字符")
	@ExcelProperty("签署方式")
	@Schema(description = "签署方式1线下签0电子签")
	private String signType;

	/**
	 * 合同开始日期
	 */
	@ExcelAttribute(name = "合同开始日期", isDate = true)
	@ExcelProperty("合同开始日期")
	@Schema(description = "合同开始日期")
	private Date contractStart;
	/**
	 * 合同截止日期
	 */
	@ExcelAttribute(name = "合同截止日期", isDate = true)
	@ExcelProperty("合同截止日期")
	@Schema(description = "合同截止日期")
	private Date contractEnd;

	/**
	 * 合同开始日期-上一份合同
	 */
	@ExcelAttribute(name = "合同开始日期-上一份合同" )
	@Schema(description ="合同开始日期-上一份合同")
	@ExcelProperty("合同开始日期-上一份合同")
	private Date contractStartPre;

	/**
	 * 合同截止日期-上一份合同
	 */
	@ExcelAttribute(name = "合同截止日期-上一份合同" )
	@Schema(description ="合同截止日期-上一份合同")
	@ExcelProperty("合同截止日期-上一份合同")
	private Date contractEndPre;

}
