package com.rv.home.rv.module.ui.main.home.bean;

import com.alibaba.fastjson.JSON;
import com.base.utils.ui.datetime.selector.util.TextUtil;
import com.google.gson.annotations.SerializedName;
import com.ruiwenliu.wrapper.SPConstance;
import com.ruiwenliu.wrapper.base.BaseBean;
import com.ruiwenliu.wrapper.util.UtilsManager;
import com.ruiwenliu.wrapper.bean.BeanUserInfo;
import com.yuyife.okgo.OkGoUtil;

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

/**
 * Created :Auser
 * Date: 2019/5/25.
 * Desc:租车类型列表
 */

public class CarTypeListBean extends BaseBean implements Serializable {


    /**
     * data : {"totalCount":32,"totalPage":4,"pageNum":1,"pageSize":10,"data":[{"distance":4307.442767774642,"vehicleModel":{"id":25,"name":"大通自行式C型房车（旅居版）车型24","licensePlate":"C24","factory":1,"keyword":"烧烤,6乘29卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":4,"name":"大通自行式C型房车（旅居版）车型3","licensePlate":"C3","factory":1,"keyword":"烧烤,6乘8卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":15,"name":"大通自行式C型房车（旅居版）车型14","licensePlate":"C14","factory":1,"keyword":"烧烤,6乘19卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":26,"name":"大通自行式C型房车（旅居版）车型25","licensePlate":"C25","factory":1,"keyword":"烧烤,6乘30卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":5,"name":"大通自行式C型房车（旅居版）车型4","licensePlate":"C4","factory":1,"keyword":"烧烤,6乘9卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":16,"name":"大通自行式C型房车（旅居版）车型15","licensePlate":"C15","factory":1,"keyword":"烧烤,6乘20卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":27,"name":"大通自行式C型房车（旅居版）车型26","licensePlate":"C26","factory":1,"keyword":"烧烤,6乘31卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":6,"name":"大通自行式C型房车（旅居版）车型5","licensePlate":"C5","factory":1,"keyword":"烧烤,6乘10卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":17,"name":"大通自行式C型房车（旅居版）车型16","licensePlate":"C16","factory":1,"keyword":"烧烤,6乘21卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":28,"name":"大通自行式C型房车（旅居版）车型27","licensePlate":"C27","factory":1,"keyword":"烧烤,6乘32卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}}]}
     * rel : true
     */

    private DataBeanX data;
    private boolean rel;

    public DataBeanX getData() {
        return data;
    }

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

    public boolean isRel() {
        return rel;
    }

    public void setRel(boolean rel) {
        this.rel = rel;
    }

    public static class DataBeanX implements Serializable {
        /**
         * totalCount : 32
         * totalPage : 4
         * pageNum : 1
         * pageSize : 10
         * data : [{"distance":4307.442767774642,"vehicleModel":{"id":25,"name":"大通自行式C型房车（旅居版）车型24","licensePlate":"C24","factory":1,"keyword":"烧烤,6乘29卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":4,"name":"大通自行式C型房车（旅居版）车型3","licensePlate":"C3","factory":1,"keyword":"烧烤,6乘8卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":15,"name":"大通自行式C型房车（旅居版）车型14","licensePlate":"C14","factory":1,"keyword":"烧烤,6乘19卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":26,"name":"大通自行式C型房车（旅居版）车型25","licensePlate":"C25","factory":1,"keyword":"烧烤,6乘30卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":5,"name":"大通自行式C型房车（旅居版）车型4","licensePlate":"C4","factory":1,"keyword":"烧烤,6乘9卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":16,"name":"大通自行式C型房车（旅居版）车型15","licensePlate":"C15","factory":1,"keyword":"烧烤,6乘20卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":27,"name":"大通自行式C型房车（旅居版）车型26","licensePlate":"C26","factory":1,"keyword":"烧烤,6乘31卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":6,"name":"大通自行式C型房车（旅居版）车型5","licensePlate":"C5","factory":1,"keyword":"烧烤,6乘10卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":17,"name":"大通自行式C型房车（旅居版）车型16","licensePlate":"C16","factory":1,"keyword":"烧烤,6乘21卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}},{"distance":4307.442767774642,"vehicleModel":{"id":28,"name":"大通自行式C型房车（旅居版）车型27","licensePlate":"C27","factory":1,"keyword":"烧烤,6乘32卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"},"company":{"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}}]
         */

        private int totalCount;
        private int totalPage;
        private int pageNum;
        private int pageSize;
        private List<DataBean> data;

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

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

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

        public static class DataBean implements Serializable {
            /**
             * distance : 4307.442767774642
             * vehicleModel : {"id":25,"name":"大通自行式C型房车（旅居版）车型24","licensePlate":"C24","factory":1,"keyword":"烧烤,6乘29卧,麻将,微波炉","point":0,"picture":"https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg"}
             * company : {"id":2,"name":"深圳宝安分公司","branchType":1,"addrProvince":440000,"addrCity":440300,"addrTown":440306,"addrDetail":"西乡前进二路智创中心A110","createTime":"2019-03-29 00:26:31","updateTime":"2019-05-09 16:23:01","leader":"单林华","leaderContactInfo":"18565905358","status":5,"latitude":22.985959,"longitude":113.904878,"zoneId":6}
             */

            private double distance;
            private VehicleModelBean vehicleModel;
            private CompanyBean company;
            private String hasVehicle;  //1--有车，0--没车

            public double getDistance() {
                return distance;
            }

            public void setDistance(double distance) {
                this.distance = distance;
            }

            public VehicleModelBean getVehicleModel() {
                return vehicleModel;
            }

            public void setVehicleModel(VehicleModelBean vehicleModel) {
                this.vehicleModel = vehicleModel;
            }

            public CompanyBean getCompany() {
                return company;
            }

            public void setCompany(CompanyBean company) {
                this.company = company;
            }

            public String getHasVehicle() {
                return hasVehicle;
            }

            public void setHasVehicle(String hasVehicle) {
                this.hasVehicle = hasVehicle;
            }

            public static class VehicleModelBean implements Serializable {
                /**
                 * id : 25
                 * name : 大通自行式C型房车（旅居版）车型24
                 * licensePlate : C24
                 * factory : 1
                 * keyword : 烧烤,6乘29卧,麻将,微波炉
                 * point : 0
                 * picture : https://xxfcim.upyuns.com/image/u/2/10000002/201905/o/adb766b69c0140018a3aaaa08b37d41d.jpg
                 */

                private int id;
                private String name;
                private String licensePlate;
                private int factory;
                private String keyword;
                private double point;
                private String picture;
                private double price;
                private String rentDiscountPrice;//租车优惠价格
                private int rentDiscountStatus;//租车优惠状态 0–没有优惠;1–会员折扣;2–固定值
                private int score;

                public double getSum() {
                    BeanUserInfo.UserInfo info = null;
                    String spStringCode = UtilsManager.getInstance(OkGoUtil.application).getSPStringCode(SPConstance.USER_JSON, SPConstance.USER_JSON_USERINFO);
                    if (!TextUtil.isEmpty(spStringCode)) {
                        info = JSON.parseObject(spStringCode, BeanUserInfo.UserInfo.class);
                    }

                    double amount = price;
                    if (info == null) {
                        return price;
                    }

                    if (0 == info.getIsMember()) {   //不是会员
                        amount = price;
                    } else if (1 == info.getIsMember()) { //会员
                        if (0 == rentDiscountStatus) {
                            amount = price;
                        } else if (1 == rentDiscountStatus) {
                            double discount = info.getDiscount() * 0.01;
                            amount = price * discount;
                        } else if (2 == rentDiscountStatus) {
                            if (!TextUtil.isEmpty(rentDiscountPrice)){
                                String[] list = rentDiscountPrice.split(",");
                                int memberLevel = info.getMemberLevel();//1 普通会员 2 黄金会员 3 钻石会员
                                if (list !=null && list.length >1){
                                    if (1==memberLevel){
                                        amount = Integer.valueOf(list[0]);
                                    }else if (2==memberLevel){
                                        amount = Integer.valueOf(list[1]);
                                    }else if (3==memberLevel){
                                        amount = Integer.valueOf(list[2]);
                                    }
                                }
                            }
                        }
                    }
                    return new BigDecimal(amount).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
                }

                public double getPrice() {
                    return price;
                }

                public void setPrice(double price) {
                    this.price = price;
                }

                public int getId() {
                    return id;
                }

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

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getLicensePlate() {
                    return licensePlate;
                }

                public void setLicensePlate(String licensePlate) {
                    this.licensePlate = licensePlate;
                }

                public int getFactory() {
                    return factory;
                }

                public void setFactory(int factory) {
                    this.factory = factory;
                }

                public String getKeyword() {
                    return keyword;
                }

                public void setKeyword(String keyword) {
                    this.keyword = keyword;
                }

                public double getPoint() {
                    return point;
                }

                public void setPoint(double point) {
                    this.point = point;
                }

                public String getPicture() {
                    return picture;
                }

                public void setPicture(String picture) {
                    this.picture = picture;
                }

                public String getIcon() {
                    String icon = "";
                    if (!TextUtil.isEmpty(picture)) {
                        String[] icons = picture.split(",");
                        if (icons != null && icons.length > 0) {
                            icon = icons[0];
                        } else {
                            icon = picture;
                        }
                    }

                    return icon;
                }

                public String getRentDiscountPrice() {
                    return rentDiscountPrice;
                }

                public void setRentDiscountPrice(String rentDiscountPrice) {
                    this.rentDiscountPrice = rentDiscountPrice;
                }

                public int getRentDiscountStatus() {
                    return rentDiscountStatus;
                }

                public void setRentDiscountStatus(int rentDiscountStatus) {
                    this.rentDiscountStatus = rentDiscountStatus;
                }

                public int getScore() {
                    return score;
                }

                public void setScore(int score) {
                    this.score = score;
                }
            }

            public static class CompanyBean implements Serializable {
                /**
                 * id : 2
                 * name : 深圳宝安分公司
                 * branchType : 1
                 * addrProvince : 440000
                 * addrCity : 440300
                 * addrTown : 440306
                 * addrDetail : 西乡前进二路智创中心A110
                 * createTime : 2019-03-29 00:26:31
                 * updateTime : 2019-05-09 16:23:01
                 * leader : 单林华
                 * leaderContactInfo : 18565905358
                 * status : 5
                 * latitude : 22.985959
                 * longitude : 113.904878
                 * zoneId : 6
                 */

                private int id;
                private String name;
                private int branchType;
                private int addrProvince;
                private int addrCity;
                private int addrTown;
                private String addrDetail;
                private String createTime;
                private String updateTime;
                private String leader;
                private String leaderContactInfo;
                @SerializedName("status")
                private int statusX;
                private double latitude;
                private double longitude;
                private int zoneId;
                private String phone;

                public String getPhone() {
                    return phone;
                }

                public void setPhone(String phone) {
                    this.phone = phone;
                }

                public int getId() {
                    return id;
                }

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

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getBranchType() {
                    return branchType;
                }

                public void setBranchType(int branchType) {
                    this.branchType = branchType;
                }

                public int getAddrProvince() {
                    return addrProvince;
                }

                public void setAddrProvince(int addrProvince) {
                    this.addrProvince = addrProvince;
                }

                public int getAddrCity() {
                    return addrCity;
                }

                public void setAddrCity(int addrCity) {
                    this.addrCity = addrCity;
                }

                public int getAddrTown() {
                    return addrTown;
                }

                public void setAddrTown(int addrTown) {
                    this.addrTown = addrTown;
                }

                public String getAddrDetail() {
                    return addrDetail;
                }

                public void setAddrDetail(String addrDetail) {
                    this.addrDetail = addrDetail;
                }

                public String getCreateTime() {
                    return createTime;
                }

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

                public String getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(String updateTime) {
                    this.updateTime = updateTime;
                }

                public String getLeader() {
                    return leader;
                }

                public void setLeader(String leader) {
                    this.leader = leader;
                }

                public String getLeaderContactInfo() {
                    return leaderContactInfo;
                }

                public void setLeaderContactInfo(String leaderContactInfo) {
                    this.leaderContactInfo = leaderContactInfo;
                }

                public int getStatusX() {
                    return statusX;
                }

                public void setStatusX(int statusX) {
                    this.statusX = statusX;
                }

                public double getLatitude() {
                    return latitude;
                }

                public void setLatitude(double latitude) {
                    this.latitude = latitude;
                }

                public double getLongitude() {
                    return longitude;
                }

                public void setLongitude(double longitude) {
                    this.longitude = longitude;
                }

                public int getZoneId() {
                    return zoneId;
                }

                public void setZoneId(int zoneId) {
                    this.zoneId = zoneId;
                }
            }
        }
    }
}
