
package org.sky.scientific.excel;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.sky.core.tool.utils.DateUtil;

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


/**
 * 项目-设计费用、装备调试费用与试验费用基本信息台账 Excel实体类
 *
 * @author Kd
 * @since 2025-07-28
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class XmDesignCostExcel implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	@ExcelProperty(index = 0, value = "序号")
	private String xh;

	@ExcelProperty(index = 1, value = "研发项目编号")
	private String xmbh;

	@ExcelProperty(index = 2, value = "研发项目名称")
	private String xmmc;

	@Schema(description = "费用类型")
	@ExcelProperty(index = 3)
	private String costType;

	@Schema(description = "日期")
	@ExcelProperty(index = 4)
	@DateTimeFormat(DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date recordDate;

	@Schema(description = "合同名称")
	@ExcelProperty(index = 5)
	private String contractName;

	@Schema(description = "金额")
	@ExcelProperty(index = 6)
	private BigDecimal amount;
}
