浏览代码

树形结构接口调整

kongwz 4 年之前
父节点
当前提交
9efdd6448e

+ 88 - 0
cdssman-service/src/main/java/com/diagbot/dto/RelationNodeDTO.java

@@ -0,0 +1,88 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.List;
+
+/**
+ * @Description
+ * @author rgb
+ * @time 2018年12月5日下午5:00:34
+ */
+@Getter
+@Setter
+public class RelationNodeDTO {
+	
+	/**
+	 * 当前概念id start_id
+	 */
+	private Long conceptId;
+	
+	/**
+	 * 当前概念名称
+	 */
+	private String conceptName;
+	
+	/**
+	 * 当前概念类型id
+	 */
+	private Long conceptTypeId;
+	
+	/**
+	 * 当前概念类型名称
+	 */
+	private String conceptTypeName;
+	
+	/**
+	 * 当前概念名称(类型)
+	 */
+	private String conceptNameType;
+	
+	/**
+	 * 上一级概念id end_id
+	 */
+	private Long parentConceptId;
+	
+	/**
+	 * 上一级概念名称
+	 */
+	private String parentConceptName;
+	
+	/**
+	 * 上一级概念类型id
+	 */
+	private Long parentConceptTypeId;
+	
+	/**
+	 * 上一级概念类型名称
+	 */
+	private String parentConceptTypeName;
+	
+	/**
+	 * 上一级概念名称(类型)
+	 */
+	private String parentConceptNameType;
+	
+	/**
+	 * 当前概念(起点术语) 与 上一级概念(终点术语) 关系id
+	 */
+	private Long relationId;
+	
+	/**
+	 * 当前概念(起点术语) 与 上一级概念(终点术语) 关系名称
+	 */
+	private String relationName;
+	
+	/**
+     * 状态:Y-已删除,N-启用中
+     */
+	private String isDeletedConcept;
+	
+	/**
+	 * 下一级概念
+	 */
+	private List<RelationNodeDTO> nodeList;
+	
+
+}

+ 0 - 6
cdssman-service/src/main/java/com/diagbot/web/KlConceptController.java

@@ -59,11 +59,5 @@ public class KlConceptController {
         return RespDTO.onSuc(klConceptFacade.saveConceptInfo(klConceptSaveVO));
     }
 
-    @ApiOperation(value = "知识库标准化-获取所有概念(术语关系维护时筛选使用)[by:kongwz]")
-    @PostMapping("/getAllForRelation")
-    @SysLogger("getAllForRelation")
-    public RespDTO<List<GetAllForRelationDTO>> getAllForRelation(@RequestBody GetAllForRelationVO getAllForRelationVO) {
-        return RespDTO.onSuc(klConceptFacade.getAllForRelation(getAllForRelationVO));
-    }
 
 }

+ 13 - 0
cdssman-service/src/main/java/com/diagbot/web/MultContactController.java

@@ -1,9 +1,12 @@
 package com.diagbot.web;
 
 import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.GetAllForRelationDTO;
 import com.diagbot.dto.RelationNodeDTO;
 import com.diagbot.dto.RespDTO;
+import com.diagbot.facade.KlConceptFacade;
 import com.diagbot.facade.RelationContactFacade;
+import com.diagbot.vo.GetAllForRelationVO;
 import com.diagbot.vo.KlRelationNodeVO;
 import com.diagbot.vo.RelationContactDetailVO;
 import io.swagger.annotations.Api;
@@ -16,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.validation.Valid;
+import java.util.List;
 
 /**
  * @author kwz
@@ -29,6 +33,8 @@ import javax.validation.Valid;
 public class MultContactController {
     @Autowired
     private RelationContactFacade relationContactFacade;
+    @Autowired
+    private KlConceptFacade klConceptFacade;
 
 
     @ApiOperation(value = "知识库标准化-树形结构维护相关API-详情[by:kongwz]")
@@ -38,6 +44,13 @@ public class MultContactController {
         return RespDTO.onSuc(relationContactFacade.relationContactDetail(relationContactDetailVO));
     }
 
+    @ApiOperation(value = "知识库标准化-获取所有概念(术语关系维护时筛选使用)[by:kongwz]")
+    @PostMapping("/getAllForRelation")
+    @SysLogger("getAllForRelation")
+    public RespDTO<List<GetAllForRelationDTO>> getAllForRelation(@RequestBody GetAllForRelationVO getAllForRelationVO) {
+        return RespDTO.onSuc(klConceptFacade.getAllForRelation(getAllForRelationVO));
+    }
+
     @ApiOperation(value = "知识库标准化-医学术语多层关联维护-添加或者编辑[by:kongwz]")
     @PostMapping("/addRelation")
     @SysLogger("addRelation")