|
@@ -5,6 +5,7 @@ import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.ConceptBaseDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.facade.ConceptFacade;
|
|
|
+import com.diagbot.vo.ConceptBaseVO;
|
|
|
import com.diagbot.vo.ConceptSearchVO;
|
|
|
import com.diagbot.vo.ConceptUsualVO;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -14,6 +15,7 @@ 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;
|
|
|
+import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
@@ -57,7 +59,23 @@ public class ConceptController {
|
|
|
notes = "conceptIds: 术语Id列表")
|
|
|
@PostMapping("/getConceptMap")
|
|
|
@SysLogger("getConceptMap")
|
|
|
- public RespDTO<Map<String, Long>> getConceptMap(@RequestBody ConceptSearchVO conceptSearchVO){
|
|
|
+ public RespDTO<Map<String, Long>> getConceptMap(@RequestBody ConceptSearchVO conceptSearchVO) {
|
|
|
return RespDTO.onSuc(conceptFacade.getConceptMap(conceptSearchVO));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 验证存在并且获取概念基本信息
|
|
|
+ *
|
|
|
+ * @param conceptBaseVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "知识库标准化-验证存在并且获取概念基本信息[by:zhaops]",
|
|
|
+ notes = "name: 概念名称<br>" +
|
|
|
+ "libType: 词性<br>")
|
|
|
+ @PostMapping("/exist")
|
|
|
+ @SysLogger("exist")
|
|
|
+ @ApiIgnore
|
|
|
+ public RespDTO<ConceptBaseDTO> exist(@RequestBody ConceptBaseVO conceptBaseVO) {
|
|
|
+ return RespDTO.onSuc(conceptFacade.exist(conceptBaseVO));
|
|
|
+ }
|
|
|
}
|