From b6949a31464f2ca4e790affd467dcfc511223ba2 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期三, 05 四月 2023 23:56:00 +0800
Subject: [PATCH] 优化交费 -- 加入收银员功能
---
service-acct/src/main/java/com/java110/acct/payment/business/oweFee/OweFeePaymentBusiness.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/service-acct/src/main/java/com/java110/acct/payment/business/oweFee/OweFeePaymentBusiness.java b/service-acct/src/main/java/com/java110/acct/payment/business/oweFee/OweFeePaymentBusiness.java
index 0aa3f39..c4f60c9 100644
--- a/service-acct/src/main/java/com/java110/acct/payment/business/oweFee/OweFeePaymentBusiness.java
+++ b/service-acct/src/main/java/com/java110/acct/payment/business/oweFee/OweFeePaymentBusiness.java
@@ -74,6 +74,7 @@
@Override
public PaymentOrderDto unified(ICmdDataFlowContext context, JSONObject reqJson) {
+ String userId = context.getReqHeaders().get("user-id");
String ownerId = reqJson.getString("ownerId");
String roomId = reqJson.getString("roomId");
@@ -139,6 +140,7 @@
JSONObject saveFees = new JSONObject();
saveFees.put("orderId", orderId);
+ saveFees.put("userId", userId);
saveFees.put("money", money);
saveFees.put("roomId", roomId);
saveFees.put("communityId", reqJson.getString("communityId"));
@@ -155,7 +157,7 @@
JSONObject paramIn = JSONObject.parseObject(order);
paramIn.put("oId", paymentOrderDto.getOrderId());
freshFees(paramIn);
- JSONObject paramOut = CallApiServiceFactory.postForApi(paymentOrderDto.getAppId(), paramIn, "fee.payOweFee", JSONObject.class, "-1");
+ JSONObject paramOut = CallApiServiceFactory.postForApi(paymentOrderDto.getAppId(), paramIn, "fee.payOweFee", JSONObject.class, paramIn.getString("userId"));
}
--
Gitblit v1.8.0