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);