Forráskód Böngészése

知识库标准化-根据类型获取术语列表(科室、辅检、慢病)

gaodm 6 éve
szülő
commit
8180002188

+ 12 - 0
icssman-service/src/main/java/com/diagbot/client/KLMServiceClient.java

@@ -1,11 +1,14 @@
 package com.diagbot.client;
 
+import com.diagbot.dto.ConceptBaseDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.vo.ConceptSearchVO;
+import com.diagbot.vo.ConceptTypeVO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
+import java.util.List;
 import java.util.Map;
 
 
@@ -24,6 +27,15 @@ public interface KLMServiceClient {
 	 */
 	@PostMapping("/concept/getConceptMap")
 	RespDTO<Map<Long, String>> getConceptMap(@RequestBody ConceptSearchVO conceptSearchVO);
+
+	/**
+	 * 根据类型获取术语列表(科室、辅检、慢病)
+	 *
+	 * @param conceptTypeVO 类型 type: 1:科室、2:辅检、3:慢病
+	 * @return 术语列表
+	 */
+	@PostMapping("/concept/getConceptListByType")
+	RespDTO<List<ConceptBaseDTO>> getConceptListByType(@RequestBody ConceptTypeVO conceptTypeVO);
     
 }
 

+ 15 - 0
icssman-service/src/main/java/com/diagbot/client/hystrix/KLMServiceHystrix.java

@@ -1,12 +1,16 @@
 package com.diagbot.client.hystrix;
 
 import com.diagbot.client.KLMServiceClient;
+import com.diagbot.dto.ConceptBaseDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.vo.ConceptSearchVO;
+import com.diagbot.vo.ConceptTypeVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
+import java.util.List;
 import java.util.Map;
 
 
@@ -31,4 +35,15 @@ public class KLMServiceHystrix implements KLMServiceClient {
         return null;
     }
 
+    /**
+     * 根据类型获取术语列表(科室、辅检、慢病)
+     *
+     * @param conceptTypeVO 类型
+     * @return 术语列表
+     */
+    public RespDTO<List<ConceptBaseDTO>> getConceptListByType(@RequestBody ConceptTypeVO conceptTypeVO){
+        log.error("【hystrix】调用{}异常", "getConceptListByType");
+        return null;
+    }
+
 }

+ 16 - 0
icssman-service/src/main/java/com/diagbot/dto/ConceptBaseDTO.java

@@ -0,0 +1,16 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description: 概念出参基础实体类
+ * @author: gaodm
+ * @time: 2019/5/7 9:44
+ */
+@Getter
+@Setter
+public class ConceptBaseDTO {
+    private Long conceptId; // 概念id
+    private String name;    //概念名称
+}

+ 17 - 0
icssman-service/src/main/java/com/diagbot/vo/ConceptTypeVO.java

@@ -0,0 +1,17 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2019/5/10 14:03
+ */
+@Getter
+@Setter
+public class ConceptTypeVO {
+    //类型
+    private Integer type;
+
+}