From 11e778f72b830a4050c293d78694417d32055727 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 20 十月 2023 20:39:55 +0800 Subject: [PATCH] 对接第三方分账接口 --- ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/business/MerOrderController.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/business/MerOrderController.java b/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/business/MerOrderController.java index e1047d3..3359ae8 100644 --- a/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/business/MerOrderController.java +++ b/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/controller/business/MerOrderController.java @@ -64,8 +64,18 @@ return R.ok(merVerifyCodeVo); } + @RequestMapping(value = "/verifyOrder", method = RequestMethod.POST) + @ApiOperation(value = "核销code") + public R<MerVerifyOrderVo> verifyOrder(@RequestBody MerVerifyCodeDto merVerifyCodeDto) { + Long userId = SecurityUtils.getUserId(); + merVerifyCodeDto.setUserId(userId); + String verifyCode = merVerifyCodeDto.getVerifyCode(); + MerVerifyOrderVo merVerifyOrderVo = orderService.verifyOrder(verifyCode,merVerifyCodeDto.getShopId()); + return R.ok(merVerifyOrderVo); + } + @RequestMapping(value = "/sureVerifyOrder", method = RequestMethod.POST) - @ApiOperation(value = "核销订单") + @ApiOperation(value = "核销订单") //todo 分账 public R<MerVerifyOrderVo> sureVerifyOrder(@RequestBody MerVerifyOrderDto merVerifyOrderDto) { Long userId = SecurityUtils.getUserId(); merVerifyOrderDto.setUserId(userId); -- Gitblit v1.7.1