package org.sky.scientific.pojo.entity;

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.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("kd_107_1")
@Schema(description = "107-1 企业研究开发项目情况")
public class A107_1 extends TenantEntity {

	@Schema(description = "所属年份，yyyy")
	@NotBlank(message = "参数yearAndMonth不能为空")
	@Size(min = 4, max = 4, message = "参数yearAndMonth为年份，如：yyyy")
	private String yearAndMonth;

	@Schema(description = "研发项目id")
	@NotNull(message = "参数xmId不能为空")
	private Long xmId;

	@Schema(description = "跨年项目当年所处主要进阶段")
	private String xmStage;

	@Schema(description = "其中：政府奖金")
	private BigDecimal govBonus = BigDecimal.ZERO;

}
