| | |
| | | private int timeOutState; |
| | | private String rideType; |
| | | private String spellSuccess; //0未成功,1成功 |
| | | //是否是预约单(1=否,2=是) |
| | | private Integer reservation; |
| | | |
| | | public String getSpellSuccess() { |
| | | return spellSuccess; |
| | |
| | | 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: |
| | |
| | | case 7: |
| | | return "待支付"; |
| | | case 8: |
| | | return "待评价"; |
| | | return "待评价"; |
| | | case 9: |
| | | return "已完成"; |
| | | case 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: |
| | |
| | | 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 ? "即时" : "预约"; |
| | | } |
| | | } |
| | | } |