From c6e9715b6e593738abf1a35e49c1bbac0966f3a4 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期四, 26 十二月 2024 16:23:34 +0800 Subject: [PATCH] 1.微信登录:未注册的用户自动注册 --- src/main/java/com/mzl/flower/web/customer/OrderCustomerController.java | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mzl/flower/web/customer/OrderCustomerController.java b/src/main/java/com/mzl/flower/web/customer/OrderCustomerController.java index f76374b..9c2048e 100644 --- a/src/main/java/com/mzl/flower/web/customer/OrderCustomerController.java +++ b/src/main/java/com/mzl/flower/web/customer/OrderCustomerController.java @@ -92,7 +92,7 @@ @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query"), }) @ApiOperation(value = "退款") - public ResponseEntity<ReturnDataDTO> refundOrder(String id) { + public ResponseEntity<ReturnDataDTO> refundOrder(String id) throws Exception { orderService.refundCheck(id); paymentV3Service.refundOrder(id); return returnData(R.SUCCESS.getCode(), null); @@ -148,4 +148,19 @@ orderService.deleteOrder(id); return returnData(R.SUCCESS.getCode(), null); } + + + + + + @GetMapping(value = "/copyOrder") + @ApiImplicitParams({ + @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query"), + }) + @ApiOperation(value = "再来一单") + public ResponseEntity<ReturnDataDTO> copyOrder(String id) { + String message=orderService.copyOrder(id); + return returnData(R.SUCCESS.getCode(),null, message); + } + } -- Gitblit v1.9.3