马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
OrderController
- // 取消订单
- // 取消订单逻辑:
- // 1.商家需要将订单状态修改为“已取消”
- // 2.商家取消订单时需要指定取消原因
- // 3.商家取消订单时,若用户已经完成了支付,那么需要为用户退款
- /**
- * 取消订单
- *
- * @param ordersCancelDTO
- * @return
- */
- @PutMapping("/cancel")
- @ApiOperation("取消订单")
- public Result cancel(@RequestBody OrdersCancelDTO ordersCancelDTO) throws Exception {
- orderService.cancel(ordersCancelDTO);
- return Result.success();
- }
- /**
- * 派送订单
- *
- * @param id
- * @return
- */
- @PutMapping("/delivery/{id}")
- @ApiOperation("派送订单")
- public Result delivery(@PathVariable Long id) {
- orderService.delivery(id);
- return Result.success();
- }
- /**
- * 完成订单
- *
- * @param id
- * @return
- */
- @PutMapping("/complete/{id}")
- @ApiOperation("完成订单")
- public Result complete(@PathVariable Long id) {
- orderService.complete(id);
- return Result.suc
复制代码 免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!qidao123.com:ToB企服之家,中国第一个企服评测及软件市场,开放入驻,技术点评得现金 |