From e9da4237764b6b877a7d35332364fb1a40ed2bcc Mon Sep 17 00:00:00 2001 From: perry <292303709@qq.com> Date: Wed, 24 May 2023 16:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E6=8A=A5=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/app/recharge/AppPhoneRecordController.java | 7 +++---- .../shop/service/recharge/PhoneRecordServiceImpl.java | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java index 8b223f46d..7addc129a 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java @@ -63,14 +63,13 @@ public class AppPhoneRecordController { return success(null); } @PostMapping("delete") - public CommonResult delete(@RequestBody List data){ - String result = HttpRequest.post(phoneUrl+"query/deleteReport") + public CommonResult delete(@RequestBody String data){ + String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+data) .header("token",token) - .body(JSONObject.toJSONString(data)) .execute() .body(); JSONObject resultJson = JSONObject.parseObject(result); - log.info("提报新增返回结果{}",JSONObject.toJSONString(resultJson)); + log.info("删除返回结果{}",JSONObject.toJSONString(resultJson)); if("0000".equals(resultJson.get("code"))){ return success(null); } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java index 984000c4e..bbe6284c5 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java @@ -141,9 +141,8 @@ public class PhoneRecordServiceImpl implements PhoneRecordService { */ @Override public Boolean deletePhoneGear(String orderId) { - String result = HttpRequest.post(phoneUrl+"query/deleteReport") + String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+orderId) .header("token",token) - .body(JSONObject.toJSONString(orderId)) .execute() .body(); JSONObject resultJson = JSONObject.parseObject(result);