|
@@ -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")
|