package com.gingersoft.gsa.cloud.print.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import lombok.Data;

@Data
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;

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

        @Data
        public static class Bean implements Serializable {
            private static final long serialVersionUID = -3210457151279539745L;
            /**
             * 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;//訂單碼
            /**
             * 訂單類型{@link com.gingersoft.gsa.cloud.common.constans.OrderTypeConstans}
             */
            private int orderType;
            /**
             * 用户名称
             */
            private String userName;
            /**
             * 服務員名稱
             */
            private String memberName;
            /***
             * 層級
             * 1:主食品
             * 2:子項or細項
             * 3:細項
             */
            private int itemType;
            public final static int FOOD_MAIN = 1;
            public final static int FOOD_SECONDARY = 2;
            public final static int FOOD_THREE_LEVEL = 3;


            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;//統計打印數量
            private int presence;//presence：是否生成prj記錄 0：否，1：是
            private String printPosition;//廚房位置
        }
    }
}
