Jelajahi Sumber

不同type查询不同类型的树状结构

kongwz 4 tahun lalu
induk
melakukan
b31bf1133b

+ 8 - 1
cdssman-service/src/main/java/com/diagbot/facade/KlRelationFacade.java

@@ -23,7 +23,14 @@ public class KlRelationFacade extends KlRelationServiceImpl {
     public TreeDTO getTree(TreeVO treeVO) {
         TreeDTO treeDTO = new TreeDTO();
         List<Long[]> pList = new ArrayList<>();
-        pList.add(new Long[] { 402L, 600L, 301L, 600L, 101L });
+        pList.add(new Long[] { 402L, 600L, 301L, 600L, 101L });//药品化学物质类别
+        pList.add(new Long[] { 403L, 600L, 302L, 600L, 101L });//药品治疗学类别
+        pList.add(new Long[] { 404L, 600L, 303L, 600L, 101L });//药品药理学类别
+        pList.add(new Long[] { 405L, 600L, 304L, 600L, 101L });//药品解剖学类别
+        pList.add(new Long[] { 406L, 600L, 305L, 600L, 103L });//症状类别
+        pList.add(new Long[] { 407L, 600L, 306L, 600L, 106L });//手术和操作类别
+        pList.add(new Long[] { 408L, 600L, 107L, 600L, 108L });//实验室检查类别
+        pList.add(new Long[] { 409L, 600L, 109L, 600L, 110L });//实验室检查类别
 
 
         RelationVO relationVO = new RelationVO();

+ 3 - 1
cdssman-service/src/main/java/com/diagbot/vo/GetAllForRelationVO.java

@@ -1,6 +1,7 @@
 package com.diagbot.vo;
 
 import com.diagbot.annotation.CryptField;
+import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
@@ -14,12 +15,13 @@ import java.util.List;
  */
 @Getter
 @Setter
+@ApiModel(value = "搜索的入参")
 public class GetAllForRelationVO {
     
     /**
      * 名称
      */
-    @CryptField
+
     @ApiModelProperty(value="名称")
     private String name;
     

+ 0 - 8
cdssman-service/src/main/java/com/diagbot/web/TreeContactController.java

@@ -48,10 +48,6 @@ public class TreeContactController {
         return RespDTO.onSuc(relationContactFacade.relationContactDetail(relationContactDetailVO));
     }
 
-    /*public RespDTO<RelationNodeDTO> relationContactDetail(@Valid @RequestBody KlRelationVO klRelationVO) {
-        return RespDTO.onSuc(relationContactFacade.relationContactDetail(klRelationVO));
-    }*/
-
     @ApiOperation(value = "知识库标准化-树形结构维护相关API-详情(根据类别查询)[by:kongwz]")
     @PostMapping("/getTree")
     @SysLogger("getTree")
@@ -69,10 +65,6 @@ public class TreeContactController {
     @ApiOperation(value = "知识库标准化-医学术语多层关联维护-添加或者编辑[by:kongwz]")
     @PostMapping("/addRelation")
     @SysLogger("addRelation")
-    /*public RespDTO<Boolean> addRelation(@Valid @RequestBody KlRelationNodeVO klRelationNodeVO) {
-        return RespDTO.onSuc(relationContactFacade.addRelation(klRelationNodeVO));
-    }*/
-
     public RespDTO<Boolean> addRelation(@Valid @RequestBody List<KlRelationSaveVO> klRelationSaveVOs) {
         return RespDTO.onSuc(relationContactFacade.addRelation(klRelationSaveVOs));
     }