Browse Source

his对接接口调整

liuqq 5 years ago
parent
commit
cc4be375d2

+ 3 - 3
config-server/src/main/resources/shared/tran-service-local.yml

@@ -61,8 +61,8 @@ spring:
   rabbitmq:
     host: localhost
     port: 5672
-    username: lantone
-    password: lantone
+    username: guest
+    password: guest
     publisher-confirms: true
     virtual-host: /
 
@@ -70,7 +70,7 @@ spring:
   redis:
     database:
       mr: 8 # Redis病历索引
-    host: 192.168.156.176  #Redis服务器地址
+    host: 192.168.3.55  #Redis服务器地址
     port: 6379 # Redis服务器连接端口
     password: lantone # Redis服务器连接密码(默认为空)
     lettuce:

+ 4 - 1
tran-service/src/main/java/com/diagbot/web/PushController.java

@@ -1,7 +1,10 @@
 package com.diagbot.web;
 
+import javax.validation.Valid;
+
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -25,7 +28,7 @@ public class PushController {
     @ApiOperation(value = "HIS接口对接")
     @PostMapping("/getDataService")
     @SysLogger("getDataService")
-	public RespDTO<String> getDataService(PushVO pushVO) {
+	public RespDTO<String> getDataService(@RequestBody @Valid PushVO pushVO) {
 		String data=pushFacade.getDataService(pushVO);
 		return RespDTO.onSuc(data);
 	}