package com.sckw.system.model.report;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.excel.annotation.ExcelContext;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Weighbridge record export model.
 */
@Data
@ExcelContext(fileName = "weighbridge-record", sheetName = "records")
public class WeighbridgeRecordExcel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty("Weighbridge Name")
    private String weighbridgeName;

    @ExcelProperty("Unique Code")
    private String uniqueCode;

    @ExcelProperty("Enterprise Name")
    private String enterpriseName;

    @ExcelProperty("Truck No")
    private String truckNo;

    @ExcelProperty("Weight")
    private BigDecimal weight;

    @ExcelProperty("Create Time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ExcelProperty("Receive Time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date receiveTime;
}
