From eca80efa8e040df44beb81d53f4478b7c3e35b7e Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期五, 16 六月 2023 17:05:22 +0800
Subject: [PATCH] 优化代码
---
service-api/src/main/java/com/java110/api/smo/payment/impl/ToQrPayOweFeeSMOImpl.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/service-api/src/main/java/com/java110/api/smo/payment/impl/ToQrPayOweFeeSMOImpl.java b/service-api/src/main/java/com/java110/api/smo/payment/impl/ToQrPayOweFeeSMOImpl.java
index 0b051fb..31e7941 100644
--- a/service-api/src/main/java/com/java110/api/smo/payment/impl/ToQrPayOweFeeSMOImpl.java
+++ b/service-api/src/main/java/com/java110/api/smo/payment/impl/ToQrPayOweFeeSMOImpl.java
@@ -21,7 +21,7 @@
import com.java110.utils.util.StringUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
@@ -77,7 +77,7 @@
//鏌ヨ鐢ㄦ埛ID
paramIn.put("userId", pd.getUserId());
- String url = ServiceConstant.SERVICE_API_URL + "/api/feeApi/listOweFees?page=1&row=50&communityId=" + paramIn.getString("communityId") + "&payObjId=" + paramIn.getString("roomId") + "&payObjType=3333";
+ String url = "/feeApi/listOweFees?page=1&row=50&communityId=" + paramIn.getString("communityId") + "&payObjId=" + paramIn.getString("roomId") + "&payObjType=3333";
responseEntity = super.callCenterService(restTemplate, pd, "", url, HttpMethod.GET);
if (responseEntity.getStatusCode() != HttpStatus.OK) {
@@ -94,7 +94,7 @@
BigDecimal tmpMoney = new BigDecimal(money);
BigDecimal feePrice = null;
for (int feeIndex = 0; feeIndex < fees.size(); feeIndex++) {
- feePrice = new BigDecimal(fees.getJSONObject(feeIndex).getDouble("feePrice"));
+ feePrice = new BigDecimal(fees.getJSONObject(feeIndex).getDouble("feeTotalPrice"));
tmpMoney = tmpMoney.add(feePrice);
}
money = tmpMoney.setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue();
@@ -128,7 +128,7 @@
"", "", "", "",
pd.getAppId());
responseEntity = this.callCenterService(restTemplate, pd, "",
- ServiceConstant.SERVICE_API_URL + "/api/smallWeChat.listSmallWeChats?communityId="
+ "smallWeChat.listSmallWeChats?communityId="
+ paramIn.getString("communityId") + "&page=1&row=1&weChatType=1100&communityId="+paramIn.getString("communityId"), HttpMethod.GET);
if (responseEntity.getStatusCode() != HttpStatus.OK) {
--
Gitblit v1.8.0