苍穹外卖 商家取消、派送、完成订单

[复制链接]
发表于 2025-12-30 14:07:39 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
OrderController
  1. // 取消订单
  2.     // 取消订单逻辑:
  3.     // 1.商家需要将订单状态修改为“已取消”
  4.     // 2.商家取消订单时需要指定取消原因
  5.     // 3.商家取消订单时,若用户已经完成了支付,那么需要为用户退款
  6.     /**
  7.      * 取消订单
  8.      *
  9.      * @param ordersCancelDTO
  10.      * @return
  11.      */
  12.     @PutMapping("/cancel")
  13.     @ApiOperation("取消订单")
  14.     public Result cancel(@RequestBody OrdersCancelDTO ordersCancelDTO) throws Exception {
  15.         orderService.cancel(ordersCancelDTO);
  16.         return Result.success();
  17.     }
  18.     /**
  19.      * 派送订单
  20.      *
  21.      * @param id
  22.      * @return
  23.      */
  24.     @PutMapping("/delivery/{id}")
  25.     @ApiOperation("派送订单")
  26.     public Result delivery(@PathVariable Long id) {
  27.         orderService.delivery(id);
  28.         return Result.success();
  29.     }
  30.     /**
  31.      * 完成订单
  32.      *
  33.      * @param id
  34.      * @return
  35.      */
  36.     @PutMapping("/complete/{id}")
  37.     @ApiOperation("完成订单")
  38.     public Result complete(@PathVariable Long id) {
  39.         orderService.complete(id);
  40.         return Result.suc
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!qidao123.com:ToB企服之家,中国第一个企服评测及软件市场,开放入驻,技术点评得现金
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表