From 1a362bfa8d712f181f82678ce91afa4ba89aa484 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期一, 22 九月 2025 09:57:44 +0800
Subject: [PATCH] 丽水360接口优化
---
smartor/src/main/java/com/smartor/service/impl/SvyTaskSingleServiceImpl.java | 9 ++++++---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java | 2 ++
smartor/src/main/java/com/smartor/domain/ServiceQueryInfo.java | 2 ++
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java
index aaa755b..37f88e7 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java
@@ -88,6 +88,8 @@
try {
String url = configService.selectConfigByKey("token.360",serviceQueryInfo.getXiaoXiTou().getFaSongJGID());
serviceQueryInfo.setUrl(url);
+ String url360 = configService.selectConfigByKey("url.360",serviceQueryInfo.getXiaoXiTou().getFaSongJGID());
+ serviceQueryInfo.setUrl360(url360);
map = svyTaskSingleService.query360PatInfo(serviceQueryInfo);
} catch (Exception e) {
e.printStackTrace();
diff --git a/smartor/src/main/java/com/smartor/domain/ServiceQueryInfo.java b/smartor/src/main/java/com/smartor/domain/ServiceQueryInfo.java
index f0bbd50..d1ccc24 100644
--- a/smartor/src/main/java/com/smartor/domain/ServiceQueryInfo.java
+++ b/smartor/src/main/java/com/smartor/domain/ServiceQueryInfo.java
@@ -27,6 +27,8 @@
@ApiModelProperty(value = "tokenUrl")
public String url;
+ @ApiModelProperty(value = "360Url")
+ public String url360;
}
diff --git a/smartor/src/main/java/com/smartor/service/impl/SvyTaskSingleServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/SvyTaskSingleServiceImpl.java
index 32e4cfb..ce09f39 100644
--- a/smartor/src/main/java/com/smartor/service/impl/SvyTaskSingleServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/SvyTaskSingleServiceImpl.java
@@ -343,11 +343,14 @@
try {
String jsonString = objectMapper.writeValueAsString(serviceQueryInfo);
log.error("token鐨勫�间负锛歿}", token);
- if (serviceQueryInfo.getXiaoXiTou().getFaSongJGID().equals("47255004333112711A1001")) //鏅畞
+ if (serviceQueryInfo.getXiaoXiTou().getFaSongJGID().equals("47255004333112711A1001")) { //鏅畞
result = OkHttpExample.sendPostRequest("https://9.0.124.104:13021/mediinfo-grus-fuwuzxwg/api/esb/lyraSyncRun", jsonString, token);
- if (serviceQueryInfo.getXiaoXiTou().getFaSongJGID().equals("47231022633110211A2101")) //涓尰闄�
+ }else if (serviceQueryInfo.getXiaoXiTou().getFaSongJGID().equals("47231022633110211A2101")) { //涓尰闄�
result = OkHttpExample.sendPostRequest("https://9.0.124.104:13011/mediinfo-grus-fuwuzxwg/api/esb/lyraSyncRun", jsonString, token);
- map = objectMapper.readValue(result, Map.class);
+ }else if(ObjectUtils.isNotEmpty(serviceQueryInfo.getUrl360())){
+ result = OkHttpExample.sendPostRequest(serviceQueryInfo.getUrl360(), jsonString, token);
+ }
+ map = objectMapper.readValue(result, Map.class);
} catch (Exception e) {
e.printStackTrace();
}
--
Gitblit v1.9.3