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

import lombok.Data;

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


/**
 * @author PC
 */
@Data
public class RWaybillSubOrderVo implements Serializable {
    @Serial
    private static final long serialVersionUID = -2991208083876944003L;
    /**
     * 交易订单
     */
    private Long tradeId;
    /**
     * 物流合同id
     */
    private Long logContractId;
    private List<BillSubOrder> subOrders;
    private List<LogisticGoodsInfo> logisticGoodsInfos;




    @Data
    public static class BillSubOrder implements Serializable{
        @Serial
        private static final long serialVersionUID = -3897987095923103657L;

        /**
         * 企业id
         */
        private Long entId;

        /**
         * 物流订单id（kwt_logistics_order）
         */
        private Long lOrderId;
        /**
         * 商品id
         */
        private Long goodId;

        /**
         * 物流订单id
         */
        private Long wOrderId;

        /**
         * 编号
         */
        private String wOrderNo;

        /**
         * 托量单位
         */
        private String unit;
        /**
         * 运单状态
         */
        private Integer status;

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

        /**
         * 卸货重量
         */
        private BigDecimal unloadAmount;

        /**
         * 计划结束日期
         */
        private Date unloadTime;

        /**
         * 装货重量
         */
        private BigDecimal loadAmount;

        /**
         * 计划开始日期
         */
        private Date loadTime;

        /**
         * 亏吨重量
         */
        private BigDecimal deficitAmount;

        /**
         * 亏吨扣款
         */
        private BigDecimal deficitPrice;
        /**
         * 计费方式
         */
        private String billMode;
    }
    @Data
    public static class LogisticGoodsInfo implements Serializable{
        @Serial
        private static final long serialVersionUID = -5467651145344958760L;
        private Long lOrderId;
        private Long goodsId;
    }
}
