package com.gingersoft.supply_chain.mvp.bean;

import java.util.List;

import lombok.Data;

/**
 * @author 宇航.
 * User: admin
 * Date: 2020/12/23
 * Time: 18:00
 * Use:
 */
@Data
public class OrderDetailsBean {

    /**
     * id : 92
     * orderNo : JK1630553667
     * createTime : 1608365460896
     * initialShippingTime : 1608451855391
     * totalAmount : 100.1
     * shipping : 0
     * actualPayment : 100.1
     * status : 1
     * purchaseOrderDetailsInfoVOS : [{"id":65,"foodQuantity":1,"foodPrice":100,"status":1,"purchaseFoodId":3,"images":"https://baike.baidu.com/pic/%E9%A6%99%E8%95%89/150475/1/5d6034a85edf8db12c69     f8ef0f23dd54574e74f2?fr=lemma&amp;ct=single#aid=1&amp;pic=5d6034a85edf8db12c69f8ef0f23dd54574e74f2","foodNo":"1606560266815","quantityStarts":4,"quantityEnd":9,"type":1,"unit_content":"ML"}]
     */
    private int id;
    private String orderNo;
    private long createTime;
    private String initialShippingTime;
    private double totalAmount;
    private int shipping;
    private double actualPayment;
    private int status;
    private String supplierName;
    private List<PurchaseOrderDetailsInfoVosBean> purchaseOrderDetailsInfoVOS;

    @Data
    public static class PurchaseOrderDetailsInfoVosBean {
        /**
         * id : 65
         * foodQuantity : 1
         * foodPrice : 100
         * status : 1
         * purchaseFoodId : 3
         * images : https://baike.baidu.com/pic/%E9%A6%99%E8%95%89/150475/1/5d6034a85edf8db12c69     f8ef0f23dd54574e74f2?fr=lemma&amp;ct=single#aid=1&amp;pic=5d6034a85edf8db12c69f8ef0f23dd54574e74f2
         * foodNo : 1606560266815
         * quantityStarts : 4
         * quantityEnd : 9
         * type : 1
         * unit_content : ML
         */
        private int id;
        private int foodQuantity;
        private int foodPrice;
        private int status;
        private int purchaseFoodId;
        private String images;
        private String foodNo;
        private int quantityStarts;
        private int quantityEnd;
        private int type;
        private String unit_content;
        private String name;
        //自定義字段，總價
        private double totalAmount;
        //是否被選中
        private boolean isChecked = false;
    }
}
