package com.sckw.transport.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author lfdc
 * @description 车辆运单
 * @date 2023-06-27 11:06:08
 */
@Data
@Accessors(chain = true)
public class CarWaybillVO {

    /**
     * 物流订单id
     */
    @JsonProperty("lOrderId")
    private String lOrderId;

    /**
     *物流订单编号
     */
    @JsonProperty("lOrderNo")
    private String lOrderNo;

    /**
     * 车辆运单id
     */
    @JsonProperty("wOrderId")
    private String wOrderId;

    /**
     * 运单编号
     */
    @JsonProperty("wOrderNo")
    private String wOrderNo;
    /**
     * 车牌号
     */
    private String truckNo;
    /**
     * 状态
     */
    private String status;

    /**
     * 状态Label
     */
    private String statusLabel;

    /**
     * 运单类型
     */
    private Integer waybillType;
    /**
     * 司机
     */
    private String driverName;

    /**
     * 司机电话
     */
    private String driverPhone;

    /**
     * 承运车队
     */
    private String consignMotorcade;
    /**
     * 派车量/吨
     */
    private String sendCarWeigh;
    /**
     * 派车时间
     */
    private String sendCarDate;
    /**
     * 实装量/吨
     */
    private String loadAmount;
    /**
     * 装货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String loadDateTime;
    /**
     * 实卸量/吨
     */
    private String unloadAmount;
    /**
     * 卸货时间
     */
    private String unloadDateTime;
    /**
     * 亏吨量/吨
     */
    private String defectiveWeigh;
    /**
     * 扣亏量/吨
     */
    private BigDecimal deduct;

    /**
     * 合理损耗
     */
    private BigDecimal loss;

    /**
     * 合理损耗
     */
    private String lossLabel;

    /**
     * 派车人
     */
    private String appointor;
    /**
     * 创建时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
