From fd919e66a6e7fb9fb089e66abca4c8402c62443c Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Wed, 28 Jun 2023 11:39:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/cweb/controller/BsMerLedgerController.java | 2 ++ .../java/com/hfkj/channel/lakala/LaKaLaLedgerService.java | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cweb/src/main/java/com/cweb/controller/BsMerLedgerController.java b/cweb/src/main/java/com/cweb/controller/BsMerLedgerController.java index 0ff4c50..5901190 100644 --- a/cweb/src/main/java/com/cweb/controller/BsMerLedgerController.java +++ b/cweb/src/main/java/com/cweb/controller/BsMerLedgerController.java @@ -1,5 +1,6 @@ package com.cweb.controller; +import com.alibaba.fastjson.JSONObject; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.hfkj.common.exception.ErrorCode; @@ -51,6 +52,7 @@ public class BsMerLedgerController { @ApiOperation(value = "商户分账功能申请") public ResponseData merLedgerApply(@RequestBody BsMerLedger body) { try { + System.out.println("请求参数:" + JSONObject.toJSONString(body)); if (body.getMerId() == null || body.getPlatformType() == null) { log.error("BsDeviceOrderPayController -> payOrder error!","参数校验失败"); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); diff --git a/service/src/main/java/com/hfkj/channel/lakala/LaKaLaLedgerService.java b/service/src/main/java/com/hfkj/channel/lakala/LaKaLaLedgerService.java index cce9302..d3610c3 100644 --- a/service/src/main/java/com/hfkj/channel/lakala/LaKaLaLedgerService.java +++ b/service/src/main/java/com/hfkj/channel/lakala/LaKaLaLedgerService.java @@ -103,7 +103,7 @@ public class LaKaLaLedgerService { BsMerLedgerApply merLedgerApply = new BsMerLedgerApply(); merLedgerApply.setMerLedgerId(merLedger.getId()); - merLedgerApply.setMerId(merLedger.getId()); + merLedgerApply.setMerId(merLedger.getMerId()); merLedgerApply.setOrderNo(orderNo); merLedgerApply.setRequestBody(JSONObject.toJSONString(requestMap)); @@ -111,6 +111,9 @@ public class LaKaLaLedgerService { if (!responseBody.getString("retCode").equals("000000")) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, responseBody.getString("retMsg")); } + merLedger.setStatus(MerLedgerStatusEnum.status2.getNumber()); + merLedgerService.editMerLedger(merLedger); + System.out.println("body:" + JSONObject.toJSONString(commonParam)); System.out.println("response:" + responseBody.toJSONString()); merLedgerApply.setApplyId(responseBody.getJSONObject("respData").getString("applyId"));