|
@@ -14,6 +14,7 @@ import com.hdkj.lt.si.service.recon.ReconResultService;
|
|
|
import com.hdkj.lt.si.service.remote.impl.ReconRemoteCallServiceImpl;
|
|
import com.hdkj.lt.si.service.remote.impl.ReconRemoteCallServiceImpl;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
import org.springframework.core.io.ClassPathResource;
|
|
|
import org.springframework.http.HttpMethod;
|
|
import org.springframework.http.HttpMethod;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -52,7 +53,10 @@ public class ReconResultServiceImpl implements ReconResultService {
|
|
|
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
|
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
|
|
private static final DateTimeFormatter ISO_OFFSET = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
|
|
private static final DateTimeFormatter ISO_OFFSET = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
|
|
|
|
|
|
|
|
- private static final String REQUEST_URI = "/api/reconfiguration";
|
|
|
|
|
|
|
+// private static final String REQUEST_URI = "/api/reconfiguration";
|
|
|
|
|
+
|
|
|
|
|
+ @Value("${remote.recon.recon-uri}")
|
|
|
|
|
+ private String reconUri;
|
|
|
|
|
|
|
|
@Resource(type = ReconRemoteCallServiceImpl.class)
|
|
@Resource(type = ReconRemoteCallServiceImpl.class)
|
|
|
private IRemoteCallService remoteCallService;
|
|
private IRemoteCallService remoteCallService;
|
|
@@ -68,7 +72,7 @@ public class ReconResultServiceImpl implements ReconResultService {
|
|
|
String str;
|
|
String str;
|
|
|
RawResultDTO dto;
|
|
RawResultDTO dto;
|
|
|
try {
|
|
try {
|
|
|
- Object data = remoteCallService.call(REQUEST_URI, HttpMethod.POST, params, Object.class);
|
|
|
|
|
|
|
+ Object data = remoteCallService.call(reconUri, HttpMethod.POST, params, Object.class);
|
|
|
str = JSON.toJSONString(data);
|
|
str = JSON.toJSONString(data);
|
|
|
|
|
|
|
|
// 2. 解析返回的JSON数据
|
|
// 2. 解析返回的JSON数据
|