
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-06-29
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class AssetExcel implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	@ColumnWidth(20)
	@ExcelProperty("资产编码")
	private String zcbm;

	@ColumnWidth(20)
	@ExcelProperty("资产名称")
	private String zcmc;

	@ColumnWidth(20)
	@ExcelProperty("所属年月")
	private String yearAndMonth;

	@ColumnWidth(20)
	@ExcelProperty("资产类别")
	private String zclb;

	@ColumnWidth(20)
	@ExcelProperty("功率")
	private String gl;

	@ColumnWidth(20)
	@ExcelProperty("用途")
	private String yt;

	@ColumnWidth(20)
	@ExcelProperty("开始日期")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date kssj;

	@ColumnWidth(20)
	@ExcelProperty("使用寿命/月")
	private Integer sysm;

	@ColumnWidth(20)
	@ExcelProperty("已使用月数")
	private Integer ysysm;

	@ColumnWidth(20)
	@ExcelProperty("资产原值")
	private BigDecimal zcyz;

	@ColumnWidth(20)
	@ExcelProperty("净残值")
	private Double jcz;

	@ColumnWidth(20)
	@ExcelProperty("月折旧额/月摊销额")
	private BigDecimal yzje;

	@ExcelProperty("状态")
	private String statusName;

}
