
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.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.sky.core.tenant.mp.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 项目预算-折旧费用与长期待摊费用 实体类
 *
 * @author Kd
 * @since 2025-06-29
 */
@Data
@TableName("kd_ys_zjfyycqdtfy")
@Schema(description = "YsZjfyycqdtfy对象")
@EqualsAndHashCode(callSuper = true)
public class YsZjfyycqdtfyEntity extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

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

	@Schema(description = "资产id，kd_asset的主键")
	@NotNull(message = "请选择资产")
	private Long assetId;

	@Schema(description = "资产编码")
	@TableField(exist = false)
	private String zcbm;

	@Schema(description = "资产名称")
	@TableField(exist = false)
	private String zcmc;

	@Schema(description = "月折旧额/月摊销额（元）")
	@TableField(exist = false)
 	private BigDecimal yzje;

	@Schema(description = "在项目中的工作时长（月）")
	private Integer zzsc;

	@Schema(description = "长期待摊费用名称")
	private String cqdtfymc;

	@Schema(description = "长期待摊费用预算金额")
	private Double cqdtfyysje;

}
