
package org.sky.scientific.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
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-07-01
 */
@Data
@TableName("kd_xm_jdxbg")
@Schema(description = "XmJdxbg对象")
@EqualsAndHashCode(callSuper = true)
public class XmJdxbgEntity extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	@Schema(description = "科研项目id，kd_xm的主键")
	@NotNull(message = "请选择研发项目")
	private Long xmId;

	@Schema(description = "项目实施类型，关联kd_biz_dict的项目实施-阶段性报告-附件类型")
	@NotNull(message = "请选择项目实施类型")
	private String type;

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

	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@Schema(description = "填报时间")
	@NotNull(message = "请选择填报时间")
	private Date fillDate;
}
