
package org.sky.scientific.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import org.sky.core.tenant.mp.TenantEntity;
import org.sky.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.util.Date;

/**
 * 科研成果-专利 实体类
 *
 * @author Kd
 * @since 2025-06-29
 */
@Data
@TableName("kd_cg_zl")
@Schema(description = "CgZl对象")
@EqualsAndHashCode(callSuper = true)
public class CgZlEntity extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	@Schema(description = "专利号")
	@NotBlank(message = "请填写专利号")
	private String zlh;

	@Schema(description = "专利名称")
	@NotBlank(message = "请填写专利名称")
	private String zlmc;

	@Schema(description = "专利类型")
	@NotBlank(message = "请选择专利类型")
	private String zllx;

	@Schema(description = "是否国防专利，是，否")
	@NotBlank(message = "请选择是否国防专利")
	private String sfgfzl;

	@Schema(description = "国别")
	@NotBlank(message = "请选择国别")
	private String gb;

	@Schema(description = "申请号/专利号")
	@NotBlank(message = "请填写申请号/专利号")
	private String sqhZlh;

	@Schema(description = "申请日")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "请选择申请日")
	private Date shenqingRq;

	@Schema(description = "授权日")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "请选择授权日")
	private Date shouquanRq;

	@Schema(description = "申请单位")
	private String sqdw;

	@Schema(description = "专利权人")
	private String zlqr;

	@Schema(description = "共有权人")
	private String gyqr;

	@Schema(description = "发明人")
	private String fmr;

	@Schema(description = "法律状态")
	private String flzt;

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

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

	@Schema(description = "项目id")
	private Long xmId;

	@Schema(description = "附件")
	private String attachment;

	@Schema(description = "收件人邮箱")
	private String sjryx;

	@Schema(description = "专利提醒功能给，未发送，已发送")
	private String zltxgn;

}
