18034727885
2026-05-08 ee726cf8e210136ce76851fa04ee25a59690a3b3
app/src/main/java/cn/ptaxi/yuekeduocx/driver/bean/OrderListBean.java
@@ -69,6 +69,8 @@
        private int timeOutState;
        private String rideType;
        private String spellSuccess; //0未成功,1成功
        //是否是预约单(1=否,2=是)
        private Integer reservation;
        public String getSpellSuccess() {
            return spellSuccess;
@@ -150,18 +152,18 @@
            this.peopleNumber = peopleNumber;
        }
        public String statePinStr(){
            if (state == 1 || state == 2 ||state == 3 ||state == 4 ||state == 5 ||state == 11){
        public String statePinStr() {
            if (state == 1 || state == 2 || state == 3 || state == 4 || state == 5 || state == 11) {
                return "服务中";
            }
            return "已完成";
        }
        public String stateStr(){
            if (type == 4 || type == 5){
        public String stateStr() {
            if (type == 4 || type == 5) {
                return getSmallStatue(state);
            }
            switch (state){
            switch (state) {
                case 1:
                    return "待接单";
                case 2:
@@ -177,7 +179,7 @@
                case 7:
                    return "待支付";
                case 8:
                        return "待评价";
                    return "待评价";
                case 9:
                    return "已完成";
                case 10:
@@ -189,9 +191,10 @@
            }
            return "";
        }
//     *    1=待接单,2=待出发,3=待到达预约地点,4=待取货,5=送货中,6=已送达,7=待支付,8=需补差价,9=已取货,10=已取消,11=改派中,12=已支付差价
        //     *    1=待接单,2=待出发,3=待到达预约地点,4=待取货,5=送货中,6=已送达,7=待支付,8=需补差价,9=已取货,10=已取消,11=改派中,12=已支付差价
        private String getSmallStatue(int state) {
            switch (state){
            switch (state) {
                case 1:
                    return "待接单";
                case 2:
@@ -283,5 +286,20 @@
        public void setType(int type) {
            this.type = type;
        }
        public Integer getReservation() {
            return reservation;
        }
        public void setReservation(Integer reservation) {
            this.reservation = reservation;
        }
        /**
         * 获取显示业务类型
         */
        public String getShowBusinessType() {
            return reservation == null ? "" : 1==reservation ? "即时" : "预约";
        }
    }
}