فهرست منبع

变量名称错误

lighter 3 ماه پیش
والد
کامیت
339e047317

+ 1 - 1
src/main/java/thyyxxk/webserver/config/envionment/ApiUrl.java

@@ -16,7 +16,7 @@ public class ApiUrl {
     /**
      * 第三方接口的 api
      */
-    private String TirdpartApi;
+    private String thirdpartApi;
 
 
     /**

+ 6 - 6
src/main/java/thyyxxk/webserver/service/examinations/InspectionsService.java

@@ -36,7 +36,7 @@ public class InspectionsService {
 
 
     public List<JyIndexResponse> queryJyIndex(ReportIndexInquiry inquiry) {
-        String url = apiUrl.getTirdpartApi() + "/inspection/queryJyIndex";
+        String url = apiUrl.getThirdpartApi() + "/inspection/queryJyIndex";
 
         if (StrUtil.isBlank(inquiry.getPatNo())) {
             inquiry.setPatNo(inquiry.getContent());
@@ -60,7 +60,7 @@ public class InspectionsService {
     public JyDetailResponse queryJyDetail(String reportId) {
         ReportDetailInquiry inquiry = new ReportDetailInquiry();
         inquiry.setReportId(reportId);
-        String url = apiUrl.getTirdpartApi() + "/inspection/queryJyDetail";
+        String url = apiUrl.getThirdpartApi() + "/inspection/queryJyDetail";
 
         ResultVo<JyDetailResponse> response = template.exchange(
                 url, HttpMethod.POST, new HttpEntity<>(inquiry),
@@ -78,7 +78,7 @@ public class InspectionsService {
     }
 
     public List<TestReport> checkTestIndex(ReportIndexInquiry inquiry) {
-        String url = apiUrl.getTirdpartApi() + "/inspection/queryJcIndex";
+        String url = apiUrl.getThirdpartApi() + "/inspection/queryJcIndex";
         ResultVo<List<TestReport>> response = template.exchange(
                 url, HttpMethod.POST, new HttpEntity<>(inquiry),
                 new ParameterizedTypeReference<ResultVo<List<TestReport>>>() {
@@ -97,7 +97,7 @@ public class InspectionsService {
         if (StringUtil.isBlank(request.getReportId())) {
             throw new BizException(ExceptionEnum.NULL_POINTER, "报告ID不能为空!");
         }
-        String url = apiUrl.getTirdpartApi() + "/inspection/queryJcDetail";
+        String url = apiUrl.getThirdpartApi() + "/inspection/queryJcDetail";
         ResultVo<TestReport> response = template.exchange(
                 url, HttpMethod.POST, new HttpEntity<>(request),
                 new ParameterizedTypeReference<ResultVo<TestReport>>() {
@@ -113,7 +113,7 @@ public class InspectionsService {
     }
 
     public List<PathologyIndex> checkPathologyIndex(ReportIndexInquiry request) {
-        String url = apiUrl.getTirdpartApi() + "/inspection/queryBlIndex";
+        String url = apiUrl.getThirdpartApi() + "/inspection/queryBlIndex";
         request.setSocialNo(getPatSocialNo(request.getPatType(), request.getPatNo()));
         ResultVo<List<PathologyIndex>> response = template.exchange(
                 url, HttpMethod.POST, new HttpEntity<>(request),
@@ -132,7 +132,7 @@ public class InspectionsService {
     }
 
     public List<ElectroIndex> checkElectroIndex(ReportIndexInquiry request) {
-        String url = apiUrl.getTirdpartApi() + "/inspection/queryXdIndex";
+        String url = apiUrl.getThirdpartApi() + "/inspection/queryXdIndex";
         request.setSocialNo(getPatSocialNo(request.getPatType(), request.getPatNo()));
         ResultVo<List<ElectroIndex>> response = template.exchange(
                 url, HttpMethod.POST, new HttpEntity<>(request),

+ 1 - 3
src/main/java/thyyxxk/webserver/service/externalhttp/ThirdpartApiService.java

@@ -2,8 +2,6 @@ package thyyxxk.webserver.service.externalhttp;
 
 import com.alibaba.fastjson.JSONObject;
 import lombok.RequiredArgsConstructor;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.core.ParameterizedTypeReference;
 import org.springframework.http.HttpEntity;
 import org.springframework.http.HttpMethod;
@@ -21,7 +19,7 @@ public class ThirdpartApiService {
     private final ApiUrl apiUrl;
 
     public String getSpeechUrl(String text, String id) {
-        String url = apiUrl.getTirdpartApi() + "/ttsApi/textToSpeech";
+        String url = apiUrl.getThirdpartApi() + "/ttsApi/textToSpeech";
         JSONObject body = new JSONObject();
         body.put("text", text);
         body.put("id", id);

+ 1 - 1
src/main/resources/application-dev.yml

@@ -173,7 +173,7 @@ thyy:
   apiurl:
     socket-api: http://demo.hnthyy.cn:20922/thyy/api/socket
     scheduled-api: http://172.16.32.133:21702/thyy/scheduled/api
-    tirdpart-api: http://172.16.32.160:21701/thyy/thirdpart/api
+    thirdpart-api: http://172.16.32.160:21701/thyy/thirdpart/api
     emr-editor-template-url: "http://webhis.thyy.cn:9281/"
 #    drg-web-api:
   archive:

+ 1 - 1
src/main/resources/application-prod.yml

@@ -163,7 +163,7 @@ thyy:
   apiurl:
     socket-api: http://172.16.32.160:20922/thyy/api/socket
     scheduled-api: http://172.16.32.133:21702/thyy/scheduled/api
-    tirdpart-api: http://172.16.32.160:21701/thyy/thirdpart/api
+    thirdpart-api: http://172.16.32.160:21701/thyy/thirdpart/api
     drg-web-api: "http://172.16.32.126:8080"
     emr-editor-template-url: "http://webhis.thyy.cn:9281/"
   jcptmobile: