package com.sckw.order.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sckw.core.model.base.BaseModel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

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

/**
 * @desc: 交易订单装卸货地址委派及交付量信息
 * @author: yzc
 * @date: 2024-03-04 9:31
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("kwo_trade_order_amount")
public class KwoTradeOrderAmount extends BaseModel implements Serializable {

    @Serial
    private static final long serialVersionUID = -8603636665614208263L;

    /**
     * 交易订单id
     */
    @JsonProperty("tOrderId")
    private Long tOrderId;

    /**
     * 地址id
     */
    @JsonProperty("tAddressId")
    private Long tAddressId;

    /**
     * 货物数量
     */
    private BigDecimal amount;

    /**
     * 已委托量
     */
    private BigDecimal entrustAmount;

    /**
     * 实际交付量
     */
    private BigDecimal actualAmount;


}
