From 06758af3273850a8324c493a4505a84d95d4b4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Wed, 11 Mar 2026 20:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=93=E6=96=B9=E8=BE=BE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fangjia/script/opentest/EfundInterfaceTest.groovy | 10 +++++----- .../fangjia/service/efund/EfundMatchServiceImpl.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/opentest/EfundInterfaceTest.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/opentest/EfundInterfaceTest.groovy index 638906510..5504860ff 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/opentest/EfundInterfaceTest.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/opentest/EfundInterfaceTest.groovy @@ -64,7 +64,7 @@ try { println "接口地址:http://open.fangjia.com/efund/match" println "线程数:CPU核心数 × 4 = ${Runtime.getRuntime().availableProcessors() * 4}" - ExcelUtils.multiThreadingModify(outputFile, { List row -> + ExcelUtils.modify(outputFile, { List row -> HttpRequest request = new HttpRequest() long startTime = System.currentTimeMillis() @@ -103,7 +103,7 @@ try { row[14] = result.optString("update_time", "") row[15] = duration row[16] = "" // 无异常 - row[17] = result.optString("typical_total_price", "") + row[17] = result.optString("residential_1km_price", "") } else { // 接口返回异常 row[15] = duration @@ -139,13 +139,13 @@ try { List row = finalData[i] // 统计成功/失败 - String errorMsg = row[14]?.toString() ?: "" + String errorMsg = row[16]?.toString() ?: "" if (errorMsg == "") { successCount++ // 统计耗时 - if (row[13] instanceof Number) { - int duration = ((Number)row[13]).intValue() + if (row[15] instanceof Number) { + int duration = ((Number)row[15]).intValue() totalTime += duration // 耗时分布 diff --git a/projects/fangjia-service/src/main/java/com/fangjia/service/efund/EfundMatchServiceImpl.java b/projects/fangjia-service/src/main/java/com/fangjia/service/efund/EfundMatchServiceImpl.java index 7648af4a5..eb99d8d5a 100644 --- a/projects/fangjia-service/src/main/java/com/fangjia/service/efund/EfundMatchServiceImpl.java +++ b/projects/fangjia-service/src/main/java/com/fangjia/service/efund/EfundMatchServiceImpl.java @@ -142,7 +142,7 @@ public class EfundMatchServiceImpl implements EfundMatchService { } } if(!result.containsKey("reference_price")){ - String location = district.getLng()/100000000000.0 + "," + district.getLat()/100000000000.0; + String location = district.getLng()/10000000000.0 + "," + district.getLat()/10000000000.0; HttpRequest httpRequest = new HttpRequest(); JSONObject json = null; Map param = new HashMap();