package com.gingersoft.gsa.cloud.common.core.table;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

import com.gingersoft.gsa.cloud.database.bean.Discount;

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

import lombok.Data;

/**
 * 作者：ELEGANT_BIN
 * 版本：1.6.0
 * 创建日期：2019-12-28
 * 修订历史：2019-12-28
 * 描述：餐檯實體類
 */
public class TableBean {


    /**
     * success : true
     * sysTime : 1577590318253
     * data : [{"id":25839,"tableName":"ceshitai1*","restaurantId":26,"qrCode":"d662883361ef0e815f12b7cf46763bba","seatCount":99,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1663.jpg","posTableId":1663,"serviceCharge":0,"memberId":0,"status":0,"sort":0},{"id":25838,"tableName":"51536","restaurantId":26,"qrCode":"cdd289dde16bb5998e42eab48e05d8d1","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1699.jpg","posTableId":1699,"serviceCharge":0,"memberId":0,"status":0},{"id":25837,"tableName":"51535","restaurantId":26,"qrCode":"07c059af8f307df3d118c5d6f814254e","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1698.jpg","posTableId":1698,"serviceCharge":0,"memberId":0,"status":0},{"id":25836,"tableName":"51534","restaurantId":26,"qrCode":"ff3d6a71472909a952071f9ea4493641","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1697.jpg","posTableId":1697,"serviceCharge":0,"memberId":0,"status":0},{"id":25835,"tableName":"51533","restaurantId":26,"qrCode":"0a86777963a81d0c5b1c04d5cc56ed19","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1696.jpg","posTableId":1696,"serviceCharge":0,"memberId":0,"status":0},{"id":25834,"tableName":"51532","restaurantId":26,"qrCode":"c72e1ac5b96b90c101ad48d9a9f6d128","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1695.jpg","posTableId":1695,"serviceCharge":0,"memberId":0,"status":0},{"id":25833,"tableName":"51520","restaurantId":26,"qrCode":"28fa54e6f9db9997462918ecdceedaa9","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1686.jpg","posTableId":1686,"serviceCharge":0,"memberId":0,"status":0},{"id":25832,"tableName":"51519","restaurantId":26,"qrCode":"7c63442d37b2de50b7ffd6f988ed5b26","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1685.jpg","posTableId":1685,"serviceCharge":0,"memberId":0,"status":0},{"id":25831,"tableName":"51518","restaurantId":26,"qrCode":"1c8302334e515f3e017308e388aef0e8","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1684.jpg","posTableId":1684,"serviceCharge":0,"memberId":0,"status":0},{"id":25830,"tableName":"51516","restaurantId":26,"qrCode":"317b62ad477623ba00086899749c0c32","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1682.jpg","posTableId":1682,"serviceCharge":0,"memberId":0,"status":0},{"id":25829,"tableName":"51515","restaurantId":26,"qrCode":"1ac62a7ec9a498443106c5e6e14357cc","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1681.jpg","posTableId":1681,"serviceCharge":0,"memberId":0,"status":0},{"id":25828,"tableName":"51514","restaurantId":26,"qrCode":"e85979cf15435ad5ea39caedaedfe4c2","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1680.jpg","posTableId":1680,"serviceCharge":0,"memberId":0,"status":0},{"id":25827,"tableName":"51513","restaurantId":26,"qrCode":"46dd4f5513cb190af0dbe9865fe9ea13","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1679.jpg","posTableId":1679,"serviceCharge":0,"memberId":0,"status":0},{"id":25826,"tableName":"51512","restaurantId":26,"qrCode":"05a3af3cfb3428a932228618d696790e","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1678.jpg","posTableId":1678,"serviceCharge":0,"memberId":0,"status":0},{"id":25825,"tableName":"514","restaurantId":26,"qrCode":"e13db03e5192dad8e348c7c733011c83","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1674.jpg","posTableId":1674,"serviceCharge":0,"memberId":0,"status":0},{"id":25824,"tableName":"513","restaurantId":26,"qrCode":"b2c385aa33d96f872e1a1fbf4c191e51","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1673.jpg","posTableId":1673,"serviceCharge":0,"memberId":0,"status":0},{"id":25823,"tableName":"512","restaurantId":26,"qrCode":"84d34c7eb5081888b13ce3f8efa9d36c","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1672.jpg","posTableId":1672,"serviceCharge":0,"memberId":0,"status":0},{"id":25822,"tableName":"511","restaurantId":26,"qrCode":"def509a2970db9dce10c82e79c059897","seatCount":9,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1671.jpg","posTableId":1671,"serviceCharge":0,"memberId":0,"status":0},{"id":25821,"tableName":"510","restaurantId":26,"qrCode":"8782277d116e681fe812755fd13720be","seatCount":8,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1670.jpg","posTableId":1670,"serviceCharge":0,"memberId":0,"status":0},{"id":25820,"tableName":"509","restaurantId":26,"qrCode":"53d4e469b32d21d4ed0954ff378598b2","seatCount":7,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1669.jpg","posTableId":1669,"serviceCharge":0,"memberId":0,"status":0},{"id":25819,"tableName":"508","restaurantId":26,"qrCode":"f2b7f0ed16baeff0deca837e829a67ba","seatCount":6,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1668.jpg","posTableId":1668,"serviceCharge":0,"memberId":0,"status":0},{"id":25818,"tableName":"507","restaurantId":26,"qrCode":"5ea6de6b46a2eafb9c1ce872195444e4","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1667.jpg","posTableId":1667,"serviceCharge":10,"memberId":0,"status":0},{"id":25817,"tableName":"506","restaurantId":26,"qrCode":"7e773dff7015152d69392494e02da713","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1666.jpg","posTableId":1666,"serviceCharge":10,"memberId":0,"status":0},{"id":25816,"tableName":"0505","restaurantId":26,"qrCode":"4c3f9b8d51fd7286dd54e8c11fd99eea","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1665.jpg","posTableId":1665,"serviceCharge":0,"memberId":0,"status":0},{"id":25815,"tableName":"108","restaurantId":26,"qrCode":"b85134d26852031a1ed005ffee68266a","seatCount":8,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1510.jpg","posTableId":1510,"serviceCharge":10,"memberId":0,"status":0},{"id":25814,"tableName":"107","restaurantId":26,"qrCode":"27655b6228307f6f5a6c501152d92b32","seatCount":7,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1509.jpg","posTableId":1509,"serviceCharge":10,"memberId":0,"status":0},{"id":25813,"tableName":"106","restaurantId":26,"qrCode":"e193af113f367968c1ad229e6399fffe","seatCount":4,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1508.jpg","posTableId":1508,"serviceCharge":10,"memberId":0,"status":0},{"id":25812,"tableName":"105","restaurantId":26,"qrCode":"71bf9351bdc53a4ea3c710cb43a55d30","seatCount":4,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1507.jpg","posTableId":1507,"serviceCharge":10,"memberId":0,"status":0},{"id":25811,"tableName":"104","restaurantId":26,"qrCode":"b0f5a3250f68429ecac3ce6a8a48de1f","seatCount":8,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1506.jpg","posTableId":1506,"serviceCharge":10,"memberId":0,"status":0},{"id":25810,"tableName":"103","restaurantId":26,"qrCode":"4b18e8ef46a68a2e8bfaa5d127cc71e3","seatCount":3,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1505.jpg","posTableId":1505,"serviceCharge":10,"memberId":0,"status":0},{"id":25809,"tableName":"102","restaurantId":26,"qrCode":"04b0d5ab1eb36039adf6cee2712e2529","seatCount":1,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1504.jpg","posTableId":1504,"serviceCharge":10,"memberId":0,"status":0},{"id":25808,"tableName":"101","restaurantId":26,"qrCode":"f8248fa4a62825654220fd21d2d2faa1","seatCount":18,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1503.jpg","posTableId":1503,"serviceCharge":10,"memberId":0,"status":0},{"id":25807,"tableName":"21","restaurantId":26,"qrCode":"3b701186636cfa8bf94eb7f0ff5f6469","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1694.jpg","posTableId":1694,"serviceCharge":0,"memberId":0,"status":0},{"id":25806,"tableName":"12","restaurantId":26,"qrCode":"57b2f1b1c232647bbcfb1cf97fedd96e","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1693.jpg","posTableId":1693,"serviceCharge":0,"memberId":0,"status":0},{"id":25805,"tableName":"11A","restaurantId":26,"qrCode":"a41bef856b07c4791353a6249ca4a5e4","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1529.jpg","posTableId":1529,"serviceCharge":10,"memberId":0,"status":0},{"id":25804,"tableName":"11","restaurantId":26,"qrCode":"1fdfbd0ee66f6411f3a0a469bc820722","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1528.jpg","posTableId":1528,"serviceCharge":10,"memberId":0,"status":0},{"id":25803,"tableName":"10A","restaurantId":26,"qrCode":"05c938dd07ab52077b9eb064a894f08a","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1527.jpg","posTableId":1527,"serviceCharge":10,"memberId":0,"status":0},{"id":25802,"tableName":"10","restaurantId":26,"qrCode":"4628a0c6d75b79f8e8b550b1df1bd49c","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1526.jpg","posTableId":1526,"serviceCharge":10,"memberId":0,"status":0},{"id":25801,"tableName":"9A","restaurantId":26,"qrCode":"4e28785bdcad7b3b3d8d65f22fdbee34","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1525.jpg","posTableId":1525,"serviceCharge":10,"memberId":0,"status":0},{"id":25800,"tableName":"9","restaurantId":26,"qrCode":"f445c20d94b6e1a58c7392bb5f8d7b27","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1524.jpg","posTableId":1524,"serviceCharge":10,"memberId":0,"status":0},{"id":25799,"tableName":"8A","restaurantId":26,"qrCode":"e68ca6134b36aef5237bd2d12a4e5c4e","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1523.jpg","posTableId":1523,"serviceCharge":10,"memberId":0,"status":0},{"id":25798,"tableName":"8","restaurantId":26,"qrCode":"74c88421a6d821d57d9775ed0613e38f","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1522.jpg","posTableId":1522,"serviceCharge":10,"memberId":0,"status":0},{"id":25797,"tableName":"7A","restaurantId":26,"qrCode":"38faea30358616dbc92f310411d70ff3","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1521.jpg","posTableId":1521,"serviceCharge":10,"memberId":0,"status":0},{"id":25796,"tableName":"7","restaurantId":26,"qrCode":"dce3a52917441087b753f7ab17493be2","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1520.jpg","posTableId":1520,"serviceCharge":10,"memberId":0,"status":0},{"id":25795,"tableName":"6","restaurantId":26,"qrCode":"d8c60dd1bc20eed80251c4cdfe98932b","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1519.jpg","posTableId":1519,"serviceCharge":10,"memberId":0,"status":0},{"id":25794,"tableName":"5","restaurantId":26,"qrCode":"254dcd36c73370096e87207ba5daae1a","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1518.jpg","posTableId":1518,"serviceCharge":10,"memberId":0,"status":0},{"id":25793,"tableName":"4A","restaurantId":26,"qrCode":"5bd3086eeed03e5468e0b025b3ed4f58","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1517.jpg","posTableId":1517,"serviceCharge":10,"memberId":0,"status":0},{"id":25792,"tableName":"4","restaurantId":26,"qrCode":"e51d2b29e0f25a5cd771631666e8e1e2","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1516.jpg","posTableId":1516,"serviceCharge":10,"memberId":0,"status":0},{"id":25791,"tableName":"3A","restaurantId":26,"qrCode":"6871c3888afa1e0a1f99330cb14eb77c","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1515.jpg","posTableId":1515,"serviceCharge":10,"memberId":0,"status":0},{"id":25790,"tableName":"3","restaurantId":26,"qrCode":"e2c097d8b5ff4bb11200a4116cf6ec8b","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1514.jpg","posTableId":1514,"serviceCharge":10,"memberId":0,"status":0},{"id":25789,"tableName":"2A","restaurantId":26,"qrCode":"6d915b7bbe74a3c14047b803c88af8bc","seatCount":0,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1513.jpg","posTableId":1513,"serviceCharge":10,"memberId":0,"status":0},{"id":25788,"tableName":"2","restaurantId":26,"qrCode":"2b4ca912ac7ec5f5aff8edae64c8294d","seatCount":9,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1512.jpg","posTableId":1512,"serviceCharge":10,"memberId":0,"status":0},{"id":25787,"tableName":"1","restaurantId":26,"qrCode":"278106ae274f310ce18d59909e08c767","seatCount":9,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1511.jpg","posTableId":1511,"serviceCharge":10,"memberId":0,"status":0},{"id":25786,"tableName":"天字号","restaurantId":26,"qrCode":"0155edb9ceaf03ad6514ebae009d5895","seatCount":999,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1662.jpg","posTableId":1662,"serviceCharge":0,"memberId":0,"status":0},{"id":25785,"tableName":"测试餐桌","restaurantId":26,"qrCode":"c500e99c1bc91a9f85b09c86df4f6df2","seatCount":21,"createTime":"Dec 28, 2019 3:37:41 PM","createBy":"GSPOS","qrCodeImg":"http://localhost/qrcode/tableQrcode-26-1664.jpg","posTableId":1664,"serviceCharge":10,"memberId":0,"status":0}]
     */

    private boolean success;
    private String errMsg;
    private long sysTime;
    private List<DataBean> data;

    public boolean isSuccess() {
        return success;
    }

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

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public long getSysTime() {
        return sysTime;
    }

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

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    @Data
    public static class DataBean implements Serializable, Parcelable, Cloneable {
        /**
         * id : 25839
         * tableName : ceshitai1*
         * restaurantId : 26
         * orderId : 21568
         * qrCode : d662883361ef0e815f12b7cf46763bba
         * seatCount : 99
         * createTime : Dec 28, 2019 3:37:41 PM
         * createBy : GSPOS
         * qrCodeImg : http://localhost/qrcode/tableQrcode-26-1663.jpg
         * posTableId : 1663
         * serviceCharge : 0
         * memberId : 0
         * status : 0
         * person : 2
         * useStatus: 0
         * sort : 0
         * minSeatCount : 2
         * maxSeatCount : 8
         * SplitStatus : 0
         * skyQRCode：
         * scanId : 1117359
         */

        private int id;
        private String tableName;
        /**
         * 區域ID
         */
        private int regionId;
        /**
         * 區域名稱
         */
        private String regionName;
        private int restaurantId;
        private Long orderId;
        private String qrCode;
        private String qrCodeImg;
        private int seatCount;
        /**
         * 最大就餐人數
         */
        private int maxSeatCount;
        /**
         * 最小就餐人數
         */
        private int minSeatCount;
        private String createTime;
        private String createBy;
        private int posTableId;
        /**
         * 服務費比例
         */
        private int serviceCharge;
        private long memberId;
        /**
         * 未開檯   0
         * 已開檯   1
         * 已送單   2
         * 已印单   3
         */
        private int status;
        /**
         * 用餐人數
         */
        private int person;

        /**
         * scan表人数
         */
        private Integer scanPerson;
        /**
         * 使用狀態:
         * 未使用   0
         * 已使用   1
         */
        private int useStatus;
        /**
         * 排序
         */
        private int sort;
        /**
         * 0#堂食
         * 1#外賣
         * 2#自取
         */
        private int type;

        /**
         * 0#未分檯
         * 1#已分檯
         */
        private int splitStatus;
        /**
         * 分檯编号
         */
        private String tableNumber = "";


        /**
         * skyorder相關
         */
        /**
         * QRCode
         */
        private String skyQrCode;
        /**
         * 餐種
         */
        private long summaryId;

        /**
         * scan表ID
         */
        private Long scanId;


        public DataBean() {

        }

        public DataBean(DataBean dataBean) {
            this.id = dataBean.id;
            this.tableName = dataBean.tableName;
            this.regionId = dataBean.regionId;
            this.regionName = dataBean.regionName;
            this.orderId = dataBean.orderId;
            this.restaurantId = dataBean.restaurantId;
            this.qrCode = dataBean.qrCode;
            this.seatCount = dataBean.seatCount;
            this.maxSeatCount = dataBean.maxSeatCount;
            this.minSeatCount = dataBean.minSeatCount;
            this.createTime = dataBean.createTime;
            this.createBy = dataBean.createBy;
            this.qrCodeImg = dataBean.qrCodeImg;
            this.posTableId = dataBean.posTableId;
            this.serviceCharge = dataBean.serviceCharge;
            this.memberId = dataBean.memberId;
            this.status = dataBean.status;
            this.person = dataBean.person;
            this.useStatus = dataBean.useStatus;
            this.sort = dataBean.sort;
            this.type = dataBean.type;
            this.splitStatus = dataBean.splitStatus;
            this.tableNumber = dataBean.tableNumber;
            this.skyQrCode = dataBean.skyQrCode;
            this.summaryId = dataBean.summaryId;
            this.scanId = dataBean.scanId;
        }

        @NonNull
        @Override
        public TableBean.DataBean clone() throws CloneNotSupportedException {
            try {
                return (TableBean.DataBean) super.clone();
            } catch (CloneNotSupportedException e) {
                e.printStackTrace();
            }
            return new TableBean.DataBean(this);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeString(this.tableName);
            dest.writeInt(this.regionId);
            dest.writeString(this.regionName);
            dest.writeInt(this.restaurantId);
            dest.writeValue(this.orderId);
            dest.writeString(this.qrCode);
            dest.writeString(this.qrCodeImg);
            dest.writeInt(this.seatCount);
            dest.writeInt(this.maxSeatCount);
            dest.writeInt(this.minSeatCount);
            dest.writeString(this.createTime);
            dest.writeString(this.createBy);
            dest.writeInt(this.posTableId);
            dest.writeInt(this.serviceCharge);
            dest.writeLong(this.memberId);
            dest.writeInt(this.status);
            dest.writeInt(this.person);
            dest.writeInt(this.useStatus);
            dest.writeInt(this.sort);
            dest.writeInt(this.type);
            dest.writeInt(this.splitStatus);
            dest.writeString(this.tableNumber);
            dest.writeString(this.skyQrCode);
            dest.writeLong(this.summaryId);
            dest.writeValue(this.scanId);
        }

        protected DataBean(Parcel in) {
            this.id = in.readInt();
            this.tableName = in.readString();
            this.regionId = in.readInt();
            this.regionName = in.readString();
            this.restaurantId = in.readInt();
            this.orderId = (Long) in.readValue(Long.class.getClassLoader());
            this.qrCode = in.readString();
            this.qrCodeImg = in.readString();
            this.seatCount = in.readInt();
            this.maxSeatCount = in.readInt();
            this.minSeatCount = in.readInt();
            this.createTime = in.readString();
            this.createBy = in.readString();
            this.posTableId = in.readInt();
            this.serviceCharge = in.readInt();
            this.memberId = in.readLong();
            this.status = in.readInt();
            this.person = in.readInt();
            this.useStatus = in.readInt();
            this.sort = in.readInt();
            this.type = in.readInt();
            this.splitStatus = in.readInt();
            this.tableNumber = in.readString();
            this.skyQrCode = in.readString();
            this.summaryId = in.readLong();
            this.scanId = (Long) in.readValue(Long.class.getClassLoader());
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    public static TableBean.DataBean splitTableTransformTable(TableBean.DataBean mainTable, TableExtBean.DataBean dataBean) {
        TableBean.DataBean tableBean = new TableBean.DataBean();
        tableBean.setId(dataBean.getId());
        tableBean.setTableName(dataBean.getTableName() + "-" + dataBean.getTableNumber());
        tableBean.setOrderId(dataBean.getOrderId());
        tableBean.setMemberId(dataBean.getMemberId());
//            tableBean.setRestaurantId();
//            tableBean.setQrCode();
//            tableBean.setQrCodeImg();
        tableBean.setSeatCount(dataBean.getSeatCount());
        tableBean.setMaxSeatCount(mainTable.getMaxSeatCount());
        tableBean.setMinSeatCount(mainTable.getMinSeatCount());
        tableBean.setStatus(dataBean.getTableStatus());
        tableBean.setUseStatus(dataBean.getInUse());
        tableBean.setTableNumber(dataBean.getTableNumber());
        tableBean.setServiceCharge(dataBean.getServiceCharge());
        tableBean.setSplitStatus(0);
        tableBean.setSkyQrCode(dataBean.getSkyQrCode());
        return tableBean;
    }

    public static TableBean.DataBean splitTableTransformTable2(TableBean.DataBean mainTable, TableExtBean.DataBean dataBean) {
        TableBean.DataBean tableBean = new TableBean.DataBean();
        tableBean.setId(dataBean.getId());
        tableBean.setTableName(mainTable.getTableName() + "-" + dataBean.getTableNumber());
        tableBean.setOrderId(dataBean.getOrderId());
        tableBean.setMemberId(dataBean.getMemberId());
//            tableBean.setRestaurantId();
//            tableBean.setQrCode();
//            tableBean.setQrCodeImg();
        tableBean.setSeatCount(dataBean.getSeatCount());
        tableBean.setMaxSeatCount(mainTable.getMaxSeatCount());
        tableBean.setMinSeatCount(mainTable.getMinSeatCount());
        tableBean.setStatus(dataBean.getTableStatus());
        tableBean.setUseStatus(dataBean.getInUse());
        tableBean.setTableNumber(dataBean.getTableNumber());
        tableBean.setServiceCharge(dataBean.getServiceCharge());
        tableBean.setSplitStatus(0);
        tableBean.setSkyQrCode(dataBean.getSkyQrCode());
        return tableBean;
    }


}
