package com.sckw.transport.api.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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


@Data
public class LogisticsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 7143305943655450894L;
    private Long id;
    /**
     * 订单编号
     */
    @JsonProperty("w_order_no")
    @Schema(description = "运单编号")
    private String wOrderNo;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "商品单价")
    private String unitPrice;
    @Schema(description = "单位名称")
    private String firmName;

    @Schema(description = "状态")
    private Integer status;

    /**
     * 任务量
     */
    @Schema(description = "任务量")
    private BigDecimal taskAmount;
    @Schema(description = "卸货净量")
    private BigDecimal unloadAmount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "卸货时间")
    private LocalDateTime unloadTime;
}
