|
@@ -1,9 +1,12 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
+import com.diagbot.dto.RegulationIndexDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.ScaleDTO;
|
|
|
import com.diagbot.facade.KlRegulationBaseFacade;
|
|
|
+import com.diagbot.facade.KlRegulationFacade;
|
|
|
+import com.diagbot.vo.RegulationIndexVO;
|
|
|
import com.diagbot.vo.ScaleVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -13,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 通用规则表 前端控制器
|
|
@@ -28,6 +33,8 @@ public class KlRegulationController {
|
|
|
|
|
|
@Autowired
|
|
|
KlRegulationBaseFacade klRegulationBaseFacade;
|
|
|
+ @Autowired
|
|
|
+ KlRegulationFacade klRegulationFacade;
|
|
|
|
|
|
@ApiOperation(value = "量表规则匹配[zhoutg]", notes = "")
|
|
|
@PostMapping("/scaleRule")
|
|
@@ -35,4 +42,14 @@ public class KlRegulationController {
|
|
|
ScaleDTO scaleDTO = klRegulationBaseFacade.process(scaleVO);
|
|
|
return RespDTO.onSuc(scaleDTO);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "规则搜索[zhoutg]", notes =
|
|
|
+ "name:内容\n" +
|
|
|
+ "type:规则类型:(1:量表)\n" +
|
|
|
+ " notCodeList:过滤编码")
|
|
|
+ @PostMapping("/index")
|
|
|
+ public RespDTO<RegulationIndexDTO> index(@RequestBody RegulationIndexVO regulationIndexVO) {
|
|
|
+ List<RegulationIndexDTO> regulationIndexDTOList = klRegulationFacade.index(regulationIndexVO);
|
|
|
+ return RespDTO.onSuc(regulationIndexDTOList);
|
|
|
+ }
|
|
|
}
|