package org.springblade.transport.excel;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.format.DateTimeFormat;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.idev.excel.annotation.write.style.ContentRowHeight;
import cn.idev.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 油电记录导出 Excel
 *
 * @author Chill
 */
@Data
@ColumnWidth(22)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class OilElectricRecordExportExcel implements Serializable {
	@Serial
	private static final long serialVersionUID = 1L;

	@ExcelProperty("交易时间")
	@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
	private LocalDateTime transactionTime;

	@ExcelProperty("车船类型")
	private String vehicleType;

	@ExcelProperty("费用类型")
	private String feeType;

	@ExcelProperty("油品")
	private String oilProduct;

	@ExcelProperty("车牌号/船号")
	private String vehicleNo;

	@ExcelProperty("持卡人")
	private String cardHolder;

	@ExcelProperty("数量")
	private BigDecimal quantity;

	@ExcelProperty("单价")
	private BigDecimal unitPrice;

	@ExcelProperty("交易金额")
	private BigDecimal transactionAmount;

	@ExcelProperty("余额")
	private BigDecimal balance;

	@ExcelProperty("站点")
	private String station;

	@ExcelProperty("创建时间")
	@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;

	@ExcelProperty("更新人")
	private String updateUserName;

	@ExcelProperty("更新时间")
	@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateTime;

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