| | |
| | | import com.ruoyi.account.api.model.UserAddress; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.common.core.web.page.TableDataInfo; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.order.enums.OrderStatus; |
| | |
| | | return R.ok(orderService.lambdaQuery().isNotNull(Order::getEndTime).eq(Order::getShopId, shopId).groupBy(Order::getAppUserId).list()); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @PutMapping("/confirmDelivery/{orderId}") |
| | | @ApiOperation(value = "已发货操作", tags = {"管理后台-订单管理"}) |
| | | public R confirmDelivery(@PathVariable("orderId") String orderId, String code){ |
| | | return orderService.confirmDelivery(orderId, code); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | |
| | | |
| | | @PutMapping("/cancelOrder/{orderId}") |
| | | @ApiOperation(value = "取消订单操作", tags = {"管理后台-订单管理"}) |
| | | public R cancelOrder(@PathVariable("orderId") Long orderId){ |
| | | return orderService.cancelOrder(orderId); |
| | | } |
| | | |
| | | |
| | | |
| | | @PutMapping("/receivingOperation/{orderId}") |
| | | @ApiOperation(value = "收货操作", tags = {"管理后台-订单管理"}) |
| | | public R receivingOperation(@PathVariable("orderId") Long orderId){ |
| | | return orderService.receivingOperation(orderId); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @GetMapping("/getOrderInfo/{orderId}") |
| | | @ApiOperation(value = "查询订单详情", tags = {"管理后台-订单管理"}) |
| | | public R<OrderInfoVo> getOrderInfo(@PathVariable("orderId") Long orderId){ |
| | | OrderInfoVo orderInfo = orderService.getOrderInfo(orderId); |
| | | return R.ok(orderInfo); |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("/getOrderPageList") |
| | | // @ApiOperation(value = "获取订单列表", tags = {"管理后台-订单管理", "门店后台-订单管理"}) |
| | | public TableDataInfo<OrderPageListVo> getOrderPageList(OrderPageList orderPageList){ |
| | | startPage(); |
| | | List<OrderPageListVo> list = orderService.getOrderPageList(orderPageList); |
| | | return getDataTable(list); |
| | | public R<PageInfo<OrderPageListVo>> getOrderPageList(OrderPageList orderPageList){ |
| | | return R.ok(orderService.getOrderPageList(orderPageList)); |
| | | } |
| | | |
| | | } |
| | | |