| | |
| | | */ |
| | | @ApiOperation(value = "我的订单列表", tags = {"小程序-个人中心-我的订单"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单状态", name = "status", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "订单状态", name = "status", required = true, dataType = "int", paramType="query"), |
| | | }) |
| | | @GetMapping("/getMyOrderList") |
| | | public TableDataInfo<OrderVO> getMyOrderList(@ApiParam("订单状态") Integer status){ |
| | |
| | | */ |
| | | @ApiOperation(value = "订单详情", tags = {"小程序-个人中心-我的订单-订单详情"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int", paramType="query"), |
| | | }) |
| | | @GetMapping("/detail/{orderId}") |
| | | public R<OrderDetailVO> detail(@PathVariable("orderId") Long orderId){ |
| | |
| | | */ |
| | | @ApiOperation(value = "订单核销", tags = {"小程序-个人中心-门店管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单号", name = "code", required = true, dataType = "String"), |
| | | @ApiImplicitParam(value = "订单号", name = "code", required = true, dataType = "String", paramType="query"), |
| | | }) |
| | | @GetMapping("/writeOff/{code}/{shopId}") |
| | | public R<Void> writeOff(@PathVariable("code") String code, @PathVariable("shopId") Integer shopId){ |
| | |
| | | */ |
| | | @ApiOperation(value = "取消订单", tags = {"小程序-个人中心-我的订单"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int", paramType="query"), |
| | | }) |
| | | @GetMapping("/cancel/{orderId}") |
| | | public R<Void> cancel(@PathVariable("orderId") Long orderId){ |
| | |
| | | */ |
| | | @ApiOperation(value = "确认收货", tags = {"小程序-个人中心-我的订单"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int", paramType="query"), |
| | | }) |
| | | @GetMapping("/confirm/{orderId}") |
| | | public R<Void> confirm(@PathVariable("orderId") Long orderId){ |
| | |
| | | */ |
| | | @ApiOperation(value = "更换收货地址", tags = {"小程序-个人中心-我的订单"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int", paramType="query"), |
| | | }) |
| | | @GetMapping("/changeAddress") |
| | | public R<Void> changeAddress(@RequestParam("orderId") Long orderId, @RequestParam("addressId") Long addressId){ |
| | |
| | | * 更新订单状态 |
| | | */ |
| | | @ApiOperation(value = "更新订单状态", tags = {"后台-订单管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单对象", name = "order", required = true, dataType = "Order"), |
| | | }) |
| | | @PostMapping("/updateOrderStatus") |
| | | public R<Void> updateOrderStatus(@RequestBody Order order){ |
| | | Order order1 = orderService.getById(order.getId()); |
| | |
| | | * 预约技师 |
| | | */ |
| | | @PostMapping("/subscribe") |
| | | public R<Void> subscribe(@RequestParam(value = "id", required = false) Long id ,@RequestParam(value = "technicianId", required = false) Integer technicianId){ |
| | | public R<Void> subscribe(@RequestParam("id") Long id ,@RequestParam("technicianId") Integer technicianId){ |
| | | Order order = orderService.getById(id); |
| | | order.setTechnicianId(technicianId); |
| | | orderService.updateById(order); |