|
@@ -3,9 +3,11 @@ package com.diagbot.web;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.KlConceptAllDTO;
|
|
|
import com.diagbot.dto.KlConceptInfoDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.facade.KlConceptFacade;
|
|
|
+import com.diagbot.vo.KlConceptAllVO;
|
|
|
import com.diagbot.vo.KlConceptInfoVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -13,10 +15,11 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 概念表 前端控制器
|
|
@@ -27,16 +30,24 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/graph/klConcept")
|
|
|
-@Api(value = "基础术语维护相关API", tags = { "基础术语维护相关API" })
|
|
|
+@Api(value = "新-基础术语维护相关API", tags = { "基础术语维护相关API" })
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public class KlConceptController {
|
|
|
@Autowired
|
|
|
KlConceptFacade klConceptFacade;
|
|
|
|
|
|
- @ApiOperation(value = "知识库标准化-获取医学术语命名列表[by:wangfeng]")
|
|
|
+ @ApiOperation(value = "分页获取基础术语维护列表[by:wangfeng]")
|
|
|
@PostMapping("/getConceptInfoPage")
|
|
|
@SysLogger("getConceptInfoPage")
|
|
|
public RespDTO<IPage<KlConceptInfoDTO>> getConceptInfoPages(@RequestBody KlConceptInfoVO klConceptInfoVO) {
|
|
|
return RespDTO.onSuc(klConceptFacade.getConceptInfoPage(klConceptInfoVO));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据id获取基础术语详情[by:wangfeng]")
|
|
|
+ @PostMapping("/getConceptAll")
|
|
|
+ @SysLogger("getConceptAll")
|
|
|
+ public RespDTO<List<KlConceptAllDTO>> getConceptInfoAll(@RequestBody @Valid KlConceptAllVO klConceptAllVO) {
|
|
|
+ return RespDTO.onSuc(klConceptFacade.getConceptAlls(klConceptAllVO));
|
|
|
+ }
|
|
|
+
|
|
|
}
|