| | |
| | | // orderStatusWarpper.setTripId(orderPrivateCar.getTripId()); |
| | | data.add(orderStatusWarpper); |
| | | } |
| | | List<OrderLogistics> orderLogistics = orderLogisticsService.selectList(new EntityWrapper<OrderLogistics>().eq("userId", uid) |
| | | .in("state", Arrays.asList(1, 2, 3, 4, 5, 6, 7, 11, 12)).eq("isDelete", 1)); |
| | | for(OrderLogistics orderLogistics1 : orderLogistics){ |
| | | if(orderLogistics1.getState() == 11){ |
| | | orderLogistics1.setState(orderLogistics1.getOldState()); |
| | | } |
| | | OrderStatusWarpper orderStatusWarpper = new OrderStatusWarpper(); |
| | | orderStatusWarpper.setOrderId(orderLogistics1.getId()); |
| | | orderStatusWarpper.setOrderType(4); |
| | | orderStatusWarpper.setState(orderLogistics1.getState()); |
| | | orderStatusWarpper.setTripId(orderLogistics1.getTripId()); |
| | | data.add(orderStatusWarpper); |
| | | } |
| | | return ResultUtil.success(data); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |