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;

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

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

	@ExcelProperty("入口时间")
	@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
	private LocalDateTime entryTime;

	@ExcelProperty("ETC卡号")
	private String etcCardNo;

	@ExcelProperty("出口时间")
	@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
	private LocalDateTime exitTime;

	@ExcelProperty("入口站")
	private String entryStation;

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

	@ExcelProperty("出口站")
	private String exitStation;

	@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;
}
