
package org.sky.scientific.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.sky.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 科研项目 预算总表
 *
 * @author Kd
 * @since 2025-06-29
 */
@Data
public class XmYszbVO implements Serializable {
	@Serial
	private static final long serialVersionUID = 1L;

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

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

	@Schema(description = "项目申请单位id")
	private Long xmsqdwid;

	@Schema(description = "项目申请单位")
	private String xmsqdw;

	@Schema(description = "项目开始时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date xmkssj;

	@Schema(hidden = true)
	private String xmkssjStr;

	@Schema(description = "项目结束时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date xmjssj;

	@Schema(hidden = true)
	private String xmjssjStr;

	@Schema(description = "项目预算总额")
	private BigDecimal xmysze;

	@Schema(description = "项目预算明细", hidden = true)
	@JsonIgnore
	private String xmyszemx;

	@Schema(description = "人员人工费用")
	private Double ryrgfy;
	@Schema(description = "人员人工费用占比")
	private Double ryrgfyRate;
	@Schema(description = "直接投入费用")
	private Double zjtrfy;
	@Schema(description = "直接投入费用占比")
	private Double zjtrfyRate;
	@Schema(description = "折旧费用与长期待摊费用")
	private Double zjfyycqdtfy;
	@Schema(description = "折旧费用与长期待摊费用占比")
	private Double zjfyycqdtfyRate;
	@Schema(description = "无形资产摊销费用")
	private Double wxzctxfy;
	@Schema(description = "无形资产摊销费用占比")
	private Double wxzctxfyRate;
	@Schema(description = "设计费用")
	private Double sjfy;
	@Schema(description = "设计费用占比")
	private Double sjfyRate;
	@Schema(description = "装备调试费用与试验费用")
	private Double zbtsysyfy;
	@Schema(description = "装备调试费用与试验费用占比")
	private Double zbtsysyfyRate;
	@Schema(description = "委托外部研究开发费")
	private Double wtwbyjkffy;
	@Schema(description = "委托外部研究开发费占比")
	private Double wtwbyjkffyRate;
	@Schema(description = "其他费用")
	private Double qtfy;
	@Schema(description = "其他费用占比")
	private Double qtfyRate;

	@Schema(description = "合计")
	private Double total;
	@Schema(description = "合计占比")
	private Double totalRate;
}
