| | |
| | | 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; |
| | |
| | | import com.ruoyi.other.api.feignClient.BaseSettingClient; |
| | | import com.ruoyi.system.api.model.LoginUser; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/getOrderPageList") |
| | | @ApiOperation(value = "获取订单列表", tags = {"管理后台-订单管理", "门店后台-订单管理"}) |
| | | public TableDataInfo<OrderPageListVo> getOrderPageList(OrderPageList orderPageList){ |
| | | startPage(); |
| | | List<OrderPageListVo> list = orderService.getOrderPageList(orderPageList); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | |
| | | @PutMapping("/confirmDelivery/{orderId}") |
| | | @ApiOperation(value = "已发货操作", tags = {"管理后台-订单管理"}) |
| | | public R confirmDelivery(@PathVariable("orderId") String orderId, String code){ |
| | |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PutMapping("/cancelOrder/{orderId}") |
| | | @ApiOperation(value = "取消订单操作", tags = {"管理后台-订单管理"}) |
| | | public R cancelOrder(@PathVariable("orderId") Long orderId){ |
| | | return orderService.cancelOrder(orderId); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PutMapping("/receivingOperation/{orderId}") |
| | | @ApiOperation(value = "收货操作", tags = {"管理后台-订单管理"}) |
| | | public R receivingOperation(@PathVariable("orderId") Long orderId){ |
| | |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/getOrderInfo/{orderId}") |
| | | @ApiOperation(value = "查询订单详情", tags = {"管理后台-订单管理"}) |
| | | public R<OrderInfoVo> getOrderInfo(@PathVariable("orderId") Long orderId){ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("/getOrderPageList") |
| | | // @ApiOperation(value = "获取订单列表", tags = {"管理后台-订单管理", "门店后台-订单管理"}) |
| | | public R<PageInfo<OrderPageListVo>> getOrderPageList(OrderPageList orderPageList){ |
| | | return R.ok(orderService.getOrderPageList(orderPageList)); |
| | | } |
| | | } |
| | | |