package com.joe.print.mvp.model.bean;

import java.util.List;
import java.util.Map;

public class PrjBean {

    /**
     * success : true
     * sysTime : 1589177793623
     * data : {"-1":[{"id":1,"printerDeviceId":-1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 7, 2020 6:47:16 PM","orderDetailsId":48827589,"productName":"炸鸡翅","parentId":0,"type":3},{"id":2,"printerDeviceId":-1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 7, 2020 6:47:16 PM","orderDetailsId":48827590,"productName":"鮮茄汁藍青口","parentId":0,"type":3}],"k1":[{"id":77,"printerDeviceId":1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 11, 2020 11:41:41 AM","orderDetailsId":48828004,"productName":"走青檸測試","parentId":48827589,"type":4},{"id":78,"printerDeviceId":1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 11, 2020 11:41:41 AM","orderDetailsId":48828005,"productName":"走豆測試","parentId":48827590,"type":4},{"id":79,"printerDeviceId":1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 11, 2020 11:41:41 AM","orderDetailsId":48828006,"productName":"精選牛肉","parentId":0,"type":3},{"id":80,"printerDeviceId":1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 11, 2020 11:41:41 AM","orderDetailsId":48828007,"productName":"走豆測試","parentId":48828006,"type":4},{"id":81,"printerDeviceId":1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 11, 2020 11:41:41 AM","orderDetailsId":48828008,"productName":"雞飯(四客)","parentId":48828006,"type":3},{"id":82,"printerDeviceId":1,"status":1,"tableName":"51536","orderNo":"gs201351936242891","orderTime":2020,"person":2,"orderDetailsTime":"May 11, 2020 11:41:41 AM","orderDetailsId":48828009,"productName":"精選牛肉","parentId":48828006,"type":3}]}
     */
    private boolean success;
    private long sysTime;
    private String data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public long getSysTime() {
        return sysTime;
    }

    public void setSysTime(long sysTime) {
        this.sysTime = sysTime;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class DataBean {
        public Map<String, List<Bean>> prjMap;

        public static class Bean {
            /**
             * id : 77
             * printerDeviceId : 1
             * status : 1
             * tableName : 51536
             * orderNo : gs201351936242891
             * orderTime : 2020
             * person : 2
             * orderDetailsTime : May 11, 2020 11:41:41 AM
             * orderDetailsId : 48828004
             * productName : 走青檸測試
             * parentId : 48827589
             * type : 4
             */
            private int id;
            private int printerDeviceId;
            private int status;//為2是帶*，需要切紙的
            private String tableName;
            private String orderNo;
            private int orderTime;
            private int person;
            private String orderDetailsTime;
            private int orderDetailsId;
            private String productName;
            private String productName2;
            private String productName3;
            private int parentId;
            private int type;
            private int printerType;
            private Long printerTime;
            private int number;
            private String productId;
            private Long createTime;

            private int requests;
            private int actualPrinterDeviceId;
            private String takeFoodCode; //取餐碼
            private String billNo;//訂單碼
            private int orderType;//訂單類型
            private String userName;
            /***
             * 層級
             * 1:主食品
             * 2:子項or細項
             * 3:細項
             */
            private int itemType;
            private String sender;

            private String takeTime;
            private String sendTime;

            private int currentIndex;//當前是第幾張prj
            private int totalPrj;//本次總共有多少張prj
            private int isFirstSendOrder;//是否首次送單,1是 2否
            private int quantity;//統計打印數量

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getPrinterDeviceId() {
                return printerDeviceId;
            }

            public void setPrinterDeviceId(int printerDeviceId) {
                this.printerDeviceId = printerDeviceId;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getTableName() {
                return tableName;
            }

            public void setTableName(String tableName) {
                this.tableName = tableName;
            }

            public String getOrderNo() {
                return orderNo;
            }

            public void setOrderNo(String orderNo) {
                this.orderNo = orderNo;
            }

            public int getOrderTime() {
                return orderTime;
            }

            public void setOrderTime(int orderTime) {
                this.orderTime = orderTime;
            }

            public int getPerson() {
                return person;
            }

            public void setPerson(int person) {
                this.person = person;
            }

            public String getOrderDetailsTime() {
                return orderDetailsTime;
            }

            public void setOrderDetailsTime(String orderDetailsTime) {
                this.orderDetailsTime = orderDetailsTime;
            }

            public int getOrderDetailsId() {
                return orderDetailsId;
            }

            public void setOrderDetailsId(int orderDetailsId) {
                this.orderDetailsId = orderDetailsId;
            }

            public String getProductName() {
                return productName;
            }

            public void setProductName(String productName) {
                this.productName = productName;
            }

            public String getProductName2() {
                return productName2;
            }

            public void setProductName2(String productName2) {
                this.productName2 = productName2;
            }

            public String getProductName3() {
                return productName3;
            }

            public void setProductName3(String productName3) {
                this.productName3 = productName3;
            }

            public int getParentId() {
                return parentId;
            }

            public void setParentId(int parentId) {
                this.parentId = parentId;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getItemType() {
                return itemType;
            }

            public void setItemType(int itemType) {
                this.itemType = itemType;
            }

            public int getPrinterType() {
                return printerType;
            }

            public void setPrinterType(int printerType) {
                this.printerType = printerType;
            }

            public Long getPrinterTime() {
                return printerTime;
            }

            public void setPrinterTime(Long printerTime) {
                this.printerTime = printerTime;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public String getProductId() {
                return productId;
            }

            public void setProductId(String productId) {
                this.productId = productId;
            }

            public Long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Long createTime) {
                this.createTime = createTime;
            }

            public int getRequests() {
                return requests;
            }

            public void setRequests(int requests) {
                this.requests = requests;
            }

            public int getActualPrinterDeviceId() {
                return actualPrinterDeviceId;
            }

            public void setActualPrinterDeviceId(int actualPrinterDeviceId) {
                this.actualPrinterDeviceId = actualPrinterDeviceId;
            }

            public String getTakeFoodCode() {
                return takeFoodCode;
            }

            public void setTakeFoodCode(String takeFoodCode) {
                this.takeFoodCode = takeFoodCode;
            }

            public String getBillNo() {
                return billNo;
            }

            public void setBillNo(String billNo) {
                this.billNo = billNo;
            }

            public int getOrderType() {
                return orderType;
            }

            public void setOrderType(int orderType) {
                this.orderType = orderType;
            }

            public String getSender() {
                return sender;
            }

            public void setSender(String sender) {
                this.sender = sender;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            public String getTakeTime() {
                return takeTime;
            }

            public void setTakeTime(String takeTime) {
                this.takeTime = takeTime;
            }

            public String getSendTime() {
                return sendTime;
            }

            public void setSendTime(String sendTime) {
                this.sendTime = sendTime;
            }

            public int getCurrentIndex() {
                return currentIndex;
            }

            public void setCurrentIndex(int currentIndex) {
                this.currentIndex = currentIndex;
            }

            public int getTotalPrj() {
                return totalPrj;
            }

            public void setTotalPrj(int totalPrj) {
                this.totalPrj = totalPrj;
            }

            public int getIsFirstSendOrder() {
                return isFirstSendOrder;
            }

            public void setIsFirstSendOrder(int isFirstSendOrder) {
                this.isFirstSendOrder = isFirstSendOrder;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }
        }

        public Map<String, List<Bean>> getPrjMap() {
            return prjMap;
        }

        public void setPrjMap(Map<String, List<Bean>> prjMap) {
            this.prjMap = prjMap;
        }


    }
}
