
package org.sky.scientific.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.sky.core.tenant.mp.TenantEntity;

import java.io.Serial;

/**
 * 每月实际参研人员名单
 *
 * @author Kd
 * @since 2025-06-29
 */
@Data
@TableName("kd_xm_technician")
@EqualsAndHashCode(callSuper = true)
@Schema
public class XmTechnicianEntity extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	@Schema(hidden = true)
	private String xh;

	@Schema(description = "所属年月，如：202505")
	@NotBlank(message = "请选择所属年月")
	@Size(min = 6, max = 6)
	private String yearAndMonth;

	@Schema(description = "研发项目ID")
	@NotNull(message = "请选择研发项目")
	private Long xmId;

	@Schema(description = "项目编号")
	@TableField(exist = false)
	private String xmbh;

	@Schema(description = "项目名称")
	@TableField(exist = false)
	private String xmmc;

	@Schema(description = "人员唯一标识")
	@NotNull(message = "unicode不能为空")
	private String unicode;

	@Schema(description = "人员编号")
	@TableField(exist = false)
	private String number;

	@Schema(description = "身份证号")
	@TableField(exist = false)
	private String idCard;

	@Schema(description = "姓名")
	@TableField(exist = false)
	private String name;

	@Schema(description = "所属二级单位部门/科室/项目部id")
	@TableField(exist = false)
	private Long departmentId;

	@Schema(description = "所属二级单位部门/科室/项目部")
	@TableField(exist = false)
	private String department;

	@Schema(description = "岗位职务")
	@TableField(exist = false)
	private String post;

	@Schema(description = "岗位所在地")
	@TableField(exist = false)
	private String postLocation;

	@Schema(description = "用工性质")
	@TableField(exist = false)
	private String nature;

	@Schema(description = "参研情况")
	@TableField(exist = false)
	private String situation;

	@Schema(description = "人员类型")
	@TableField(exist = false)
	private String personnelType;

}
