
package org.sky.scientific.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
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_qt")
@Schema(description = "CgQt对象")
@EqualsAndHashCode(callSuper = true)
public class CgQtEntity extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	@Schema(description = "成果编号")
	private String cgbh;

	@Schema(description = "成果名称")
	private String cgmc;

	@Schema(description = "成果类型")
	private String cmlx;

	@Schema(description = "颁布部门")
	private String bbbm;

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

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

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

	@Schema(description = "授权日期")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date shouquanRq;

	@Schema(description = "参与/主持")
	private String canyunZhuchi;

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

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

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

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

}
