
package org.sky.scientific.excel;


import com.alibaba.excel.annotation.ExcelProperty;
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 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;


/**
 * 研发项目物料清单 Excel实体类
 *
 * @author Kd
 * @since 2025-07-17
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class XmGoodsExcel implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	@ExcelProperty("序号")
	private Integer xh;

	@ExcelProperty("领用日期")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date useDate;

	@ExcelProperty("领用日期")
	private String useDateStr;

	@ExcelProperty("研发项目名称")
	private String xmmc;

	@ExcelProperty("研发项目编号")
	private String xmbh;

 	@ExcelProperty("类型")
	private String type;

	@ExcelProperty("物资编号")
	private String code;

	@ExcelProperty("物资名称")
	private String name;

	@ExcelProperty("型号规格")
	private String model;

	@ExcelProperty("单位")
	private String unit;

	@ExcelProperty("单价（元）")
	private BigDecimal unitPrice;

	@ExcelProperty("领用数量")
	private Integer useQuantity;

	@ExcelProperty("金额（元）")
	private BigDecimal amount;
}
