From d17a802b5687a509a2150d26e362ef6c901c7ec9 Mon Sep 17 00:00:00 2001 From: gaowdong Date: Fri, 11 Apr 2025 17:48:27 +0800 Subject: [PATCH] =?UTF-8?q?5614=20=E5=BE=85=E6=94=AF=E4=BB=98=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=97=A0=E6=B3=95=E5=8F=96=E6=B6=88=E5=92=8C=E6=94=AF?= =?UTF-8?q?=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/mobile/controller/OrderInfoMobileController.java | 4 ++-- .../order/mobile/controller/OrderPlaceMobileController.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderInfoMobileController.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderInfoMobileController.java index 452307d1..d6e15ec9 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderInfoMobileController.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderInfoMobileController.java @@ -101,8 +101,8 @@ public class OrderInfoMobileController extends BaseController { value = "取消支付", notes = "cmt-取消支付" ) - public AjaxResult orderPayCancel(@RequestBody @Valid LeRequest request) { - this.orderInfoMobileBusiness.orderPayCancel(((OrderIdMobileDTO)request.getContent()).getOrderId()); + public AjaxResult orderPayCancel(@RequestBody @Valid OrderIdMobileDTO request) { + this.orderInfoMobileBusiness.orderPayCancel(request.getOrderId()); return AjaxResult.success(); } // diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderPlaceMobileController.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderPlaceMobileController.java index 3ec39ff3..0c0c67d0 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderPlaceMobileController.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/mobile/controller/OrderPlaceMobileController.java @@ -119,10 +119,9 @@ public class OrderPlaceMobileController { notes = "cmt-根据订单id支付" ) public AjaxResult orderPayByOrderId(@RequestHeader Map headers, - @RequestBody LeRequest request) { + @RequestBody OrderPayMobileDTO orderPayDTO) { long startTime = System.currentTimeMillis(); RequestHeaderDTO headerDTO = RequestHeaderDTO.of(headers); - OrderPayMobileDTO orderPayDTO = (OrderPayMobileDTO)request.getContent(); orderPayDTO.setCustId(headerDTO.getCustId()); OrderPayMobileVO mobileVO = this.orderPlaceMobileBusiness.orderPayByOrderId(headerDTO, orderPayDTO); LogUtil.info("[根据订单id支付]支付耗时", System.currentTimeMillis() - startTime, mobileVO);