package com.sckw.order.api.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

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

@Getter
@Setter
@ToString
public class TradeOrderVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 6909518527687999256L;
    private Long tOrderId;
    private String moreUrl;

    @JsonProperty("tOrderNoUrl")
    private OrderUrl tOrderNoUrl;


    private Integer status;
    private String statusLabel;

    @JsonProperty("tOrderNo")
    private String tOrderNo;
    /**
     * 采购企业
     */
    private String buyEntName;
    /**
     * 供应企业
     */
    private String sellEntName;
    private String goodsName;
    private String goodsType;
    private String goodsTypeLabel;
    private BigDecimal unitPrice;
    private Integer unit;
    private String unitLabel;
    private BigDecimal amount;
    private BigDecimal price;
    private BigDecimal loadAmount;
    private BigDecimal unloadAmount;
    private Integer chargeType;
    private String chargeTypeLabel;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 是否需要增派运力（0-不需要，1-需要）
     */
    private Integer addVehicles;
}
