
package org.sky.scientific.excel;


import com.alibaba.excel.annotation.ExcelIgnore;
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 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-17
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class XmLeaseExcel implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

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

	@ExcelProperty(value = "租赁日期")
	@DateTimeFormat(DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date leaseDate;

	@ExcelIgnore
	private String leaseDateStr;

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

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

	@ExcelProperty(value = "租赁资产类型")
	private String type;

	@ExcelProperty(value = "租赁资产名称")
	private String name;

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

	@ExcelProperty(value = "使用天数或使用量")
	private Double quantity = 0.00;

	@ExcelProperty(value =  "单价（元）")
	private BigDecimal unitPrice = BigDecimal.ZERO;

	@ExcelProperty(value =  "总价（不含税）")
	private BigDecimal amount = BigDecimal.ZERO;

	@ExcelProperty(value =  "备注")
	private String remark;
}
