| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil process(Integer orderId, Integer orderType, Integer state, Integer uid, Double lon, Double lat,Integer payManner) throws Exception { |
| | | public ResultUtil process(Integer orderId, Integer orderType, Integer state, Integer uid, Double lon, Double lat) throws Exception { |
| | | Map<String, String> geocode = gdMapGeocodingUtil.geocode(String.valueOf(lon), String.valueOf(lat)); |
| | | String address = geocode.get("address"); |
| | | switch (orderType){ |
| | | case 1://专车 |
| | | return orderPrivateCarService.process(orderId, state, lon, lat, address,payManner); |
| | | return orderPrivateCarService.process(orderId, state, lon, lat, address); |
| | | case 2://出租 |
| | | return orderTaxiService.process(orderId, state, lon, lat, address,payManner); |
| | | return orderTaxiService.process(orderId, state, lon, lat, address); |
| | | case 3://城际 |
| | | return orderCrossCityService.process(orderId, state, lon, lat, address,payManner); |
| | | return orderCrossCityService.process(orderId, state, lon, lat, address); |
| | | case 4://同城小件 |
| | | return orderLogisticsService.process(orderId, state, lon, lat, address,payManner); |
| | | return orderLogisticsService.process(orderId, state, lon, lat, address); |
| | | case 5://跨城小件 |
| | | return orderLogisticsService.process(orderId, state, lon, lat, address,payManner); |
| | | return orderLogisticsService.process(orderId, state, lon, lat, address); |
| | | case 6: |
| | | break; |
| | | case 7://专车 |
| | | return orderTransferService.process(orderId, state, lon, lat, address,payManner); |
| | | return orderTransferService.process(orderId, state, lon, lat, address); |
| | | } |
| | | return null; |
| | | } |