Selaa lähdekoodia

修改正式环境服务器

malz 1 vuosi sitten
vanhempi
commit
4a251958bf

+ 18 - 0
src/main/java/com/hgwebservice/controller/MeasureController.java

@@ -0,0 +1,18 @@
+package com.hgwebservice.controller;
+
+import com.hgwebservice.service.syncCdm2.MeasureService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.servlet.http.HttpServletRequest;
+
+@RestController
+public class MeasureController {
+    @Autowired
+    MeasureService measureService;
+    @RequestMapping({"/measure"})
+    public Boolean measure(HttpServletRequest request) {
+        return this.measureService.measure(request);
+    }
+}

+ 7 - 0
src/main/java/com/hgwebservice/service/syncCdm2/MeasureService.java

@@ -0,0 +1,7 @@
+package com.hgwebservice.service.syncCdm2;
+
+import javax.servlet.http.HttpServletRequest;
+
+public interface MeasureService {
+     Boolean measure(HttpServletRequest request);
+}

+ 12 - 0
src/main/java/com/hgwebservice/service/syncCdm2/MeasureServiceImpl.java

@@ -0,0 +1,12 @@
+package com.hgwebservice.service.syncCdm2;
+
+import org.springframework.stereotype.Service;
+
+import javax.servlet.http.HttpServletRequest;
+@Service
+public class MeasureServiceImpl implements MeasureService {
+    @Override
+    public Boolean measure(HttpServletRequest request) {
+        return null;
+    }
+}

+ 6 - 21
src/main/java/com/hgwebservice/util/WebServiceUtil.java

@@ -13,11 +13,6 @@ import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.net.MalformedURLException;
 import java.sql.Timestamp;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
@@ -30,18 +25,8 @@ public class WebServiceUtil {
     private static final Logger log = LoggerFactory.getLogger(WebServiceUtil.class);
     private static final SimpleDateFormat SDF1_DATE_SHORT = new SimpleDateFormat("yyyy-MM-dd");
     private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-    private static final SimpleDateFormat SDF_TIME2 = new SimpleDateFormat("yyyy-MM-dd HH:mm");
-    public static final String PATIENTMETHODNAME = "GetPatientHospitalInfo";
-    public static final String OPERATORMETHODNAME = "GetStaffDict";
-    public static final String DISPATCHMETHODNAME = "GetToPerformPrescribeRecord";
-    public static final String RESULTMETHODNAME = "SendBloodGlucoseRecord";
-    public static final String END_POINT_URL = "http://192.168.3.199:8693/Select-Service?wsdl";
-    public static final String END_POINT_URL_RESULT = "http://192.168.3.199:8693/Common-Service?wsdl";
-    public static final String PREFIX = "soap12";
-    public static final String NAMESPACE = "http://www.zysoft.com/";
-    public static final String SOAPACTIONURI = "http://www.zysoft.com/CallInterface";
-    public static final String METHODNAME = "CallInterface";
-    public static final String TAGNAME = "zys:payload";
+    public static final String END_POINT_URL = "http://192.168.8.225:8693/Select-Service?wsdl";
+    public static final String END_POINT_URL_RESULT = "http://192.168.8.225:8693/Common-Service?wsdl";
 
     public WebServiceUtil() {
     }
@@ -57,7 +42,7 @@ public class WebServiceUtil {
             String msgBodyQuest = patientBuildmsgBodyXml(deptCode);
             String[] inputNames = new String[]{"msgHeader", "msgBody"};
             String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
-            Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", "http://192.168.3.199:8693/Select-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
+            Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", END_POINT_URL, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
             if (document != null) {
                 Element element = document.getDocumentElement();
                 NodeList nodeList = element.getElementsByTagName("returnContent");
@@ -141,7 +126,7 @@ public class WebServiceUtil {
             String msgBodyQuest = operatorBuildmsgBodyXml();
             String[] inputNames = new String[]{"msgHeader", "msgBody"};
             String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
-            Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", "http://192.168.3.199:8693/Select-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
+            Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", END_POINT_URL, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
             if (document != null) {
                 Element element = document.getDocumentElement();
                 NodeList nodeList1 = element.getElementsByTagName("returnContent");
@@ -179,7 +164,7 @@ public class WebServiceUtil {
             String msgBodyQuest = dispatchBuildmsgBodyXml(visitNo);
             String[] inputNames = new String[]{"msgHeader", "msgBody"};
             String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
-            Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", "http://192.168.3.199:8693/Select-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
+            Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", END_POINT_URL, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
             if (document != null) {
                 Element element = document.getDocumentElement();
                 NodeList nodeList1 = element.getElementsByTagName("returnContent");
@@ -313,7 +298,7 @@ public class WebServiceUtil {
             log.info("回传字符串:" + msgBodyQuest);
             String[] inputNames = new String[]{"msgHeader", "msgBody"};
             String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
-            response = SoapUtil.GeneratorWebserviceBySoapResultUpload("soap12", "http://192.168.3.199:8693/Common-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
+            response = SoapUtil.GeneratorWebserviceBySoapResultUpload("soap12", END_POINT_URL_RESULT, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
         } catch (Exception var12) {
             log.error("doReplyResult fail ", var12);
         }

+ 3 - 3
src/main/resources/application.yml

@@ -2,9 +2,9 @@ server:
   port: 8090
 
 db:
-  url: 47.92.147.208
-  username: root
-  password: vD5LPzoXORAF9gE3
+  url: rm-uf63d18d12v7lw1x1vo.mysql.rds.aliyuncs.com
+  username: jy123
+  password: SDS-80310225-ct
 
 hospital_id: 100164
 cron: 0 0/2 * * * ?