| | |
| | | import com.stylefeng.guns.modular.smallLogistics.server.IOrderLogisticsService; |
| | | import com.stylefeng.guns.modular.specialTrain.model.OrderPrivateCar; |
| | | import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService; |
| | | import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService; |
| | | import com.stylefeng.guns.modular.system.dao.DriverWorkMapper; |
| | | import com.stylefeng.guns.modular.system.model.*; |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | |
| | | import com.stylefeng.guns.modular.system.warpper.*; |
| | | import com.stylefeng.guns.modular.taxi.model.OrderTaxi; |
| | | import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService; |
| | | import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | /** |
| | | * 订单相关控制器 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("") |
| | | public class OrderController { |
| | |
| | | List<Map<String, Object>> list = orderService.queryOrderList(state, pageNum, size, uid); |
| | | return ResultUtil.success(OrderListWarpper.getOrderListWarpper(list)); |
| | | }catch (Exception e){ |
| | | log.error("获取首页订单列表异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | List<Map<String, Object>> list = orderService.queryOrderList1(state, type, pageNum, size, uid); |
| | | return ResultUtil.success(OrderListWarpper.getOrderListWarpper(list)); |
| | | }catch (Exception e){ |
| | | log.error("获取首页订单列表异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | List<OrderListWarpper> listWarppers = orderService.queryMyAllOrder(state, pageNum, size, uid); |
| | | return ResultUtil.success(listWarppers); |
| | | }catch (Exception e){ |
| | | log.error("获取我的订单列表异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | List<OrderListWarpper> listWarppers = orderService.queryMyAllOrder1(pageNum, size, uid); |
| | | return ResultUtil.success(listWarppers); |
| | | }catch (Exception e){ |
| | | log.error("获取我的订单列表异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | Map<String, Object> map = orderService.queryPushOrder(orderId, orderType, lon, lat); |
| | | return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map)); |
| | | }catch (Exception e){ |
| | | log.error("获取抢单界面的订单详情异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | |
| | | return orderService.grabOrder(orderId, orderType, uid); |
| | | }catch (Exception e){ |
| | | log.error("司机抢单操作异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | } |
| | | return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map)); |
| | | }catch (Exception e){ |
| | | log.error("获取服务中页面订单详情异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | return ResultUtil.success(orderWarpper); |
| | | //return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map)); |
| | | }catch (Exception e){ |
| | | log.error("获取服务中页面订单详情异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | // baseWarpper.setAmount(aDouble); |
| | | return ResultUtil.success(baseWarpper); |
| | | }catch (Exception e){ |
| | | log.error("获取改派支付金额异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | }catch (SystemException s){ |
| | | return ResultUtil.error(s.getMsg()); |
| | | } catch (Exception e){ |
| | | log.error("提交改派申请(使用的)异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | try{ |
| | | return orderService.confirmFees1(orderId, orderType, type, travelFee, additionalFee); |
| | | }catch (Exception e){ |
| | | log.error("1.0-司机确认费用异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | orderCrossCityService.updateById(orderCrossCity); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("约克多-上传录音文件异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | try{ |
| | | return orderService.confirmFees_(orderId, orderType, type, travelFee, lon, lat); |
| | | }catch (Exception e){ |
| | | log.error("司机确认费用(车载端)异常", e); |
| | | e.printStackTrace(); |
| | | System.err.println(lon + "," + lat); |
| | | return ResultUtil.runErr(); |
| | |
| | | } |
| | | return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map)); |
| | | }catch (Exception e){ |
| | | log.error("获取待支付页详情异常", e); |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |