| | |
| | | import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService; |
| | | import com.stylefeng.guns.modular.taxi.model.OrderTaxi; |
| | | import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService; |
| | | import com.stylefeng.guns.modular.transfer.model.OrderTransferCar; |
| | | import com.stylefeng.guns.modular.transfer.server.IOrderTransferService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpEntity; |
| | | import org.springframework.http.HttpHeaders; |
| | |
| | | |
| | | @Autowired |
| | | private IOrderCrossCityService orderCrossCityService; |
| | | @Autowired |
| | | private IOrderTransferService orderTransferService; |
| | | |
| | | private Map<String, JSONObject> pushMap = new HashMap<>();//存储需要定时推送的数据 |
| | | |
| | |
| | | * @param type 1=用户,2=司机 |
| | | * @param uid 对象id |
| | | * @param orderId 订单id |
| | | * @param orderType 订单类型(1=专车,2=出租车,3=城际,4=小件物流-同城,5=小件物流-跨城,6=包车) |
| | | * @param orderType 订单类型(1=专车,2=出租车,3=城际,4=小件物流-同城,5=小件物流-跨城,6=包车 7=接送机) |
| | | * @param state 订单状态(1=待接单,2=待出发,3=待到达预约地点,4=待乘客上车,5=服务中,6=完成服务,7=待支付,8=待评价,9=已完成,10=已取消,11=改派中,12=取消待支付) |
| | | */ |
| | | public void pushOrderState(Integer type, Integer uid, Integer orderId, Integer orderType, Integer state, Integer time){ |
| | |
| | | OrderCrossCity orderCrossCity = orderCrossCityService.selectById(orderId); |
| | | userId = orderCrossCity.getUserId(); |
| | | break; |
| | | case 7: |
| | | OrderTransferCar orderTransferCar = orderTransferService.selectById(orderId); |
| | | userId = orderTransferCar.getUserId(); |
| | | break; |
| | | } |
| | | JSONObject data = new JSONObject(); |
| | | data.put("id", userId); |