|
@@ -1,9 +1,6 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
-import com.diagbot.dto.DrugInfoDTO;
|
|
|
-import com.diagbot.dto.LisDetailDTO;
|
|
|
-import com.diagbot.dto.OperationInfoDTO;
|
|
|
-import com.diagbot.dto.RetrievalDTO;
|
|
|
+import com.diagbot.dto.*;
|
|
|
import com.diagbot.repository.*;
|
|
|
import com.diagbot.vo.RetrievalVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -37,6 +34,9 @@ public class RetrievalFacade {
|
|
|
@Autowired
|
|
|
OperationRepository operationRepository;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ DeptRepository deptRepository;
|
|
|
+
|
|
|
/**
|
|
|
* 检索
|
|
|
*
|
|
@@ -65,6 +65,9 @@ public class RetrievalFacade {
|
|
|
case 6:
|
|
|
retrievalDTO.setOperationNames(getOperations(retrievalVO.getInputStr()));
|
|
|
break;
|
|
|
+ case 7:
|
|
|
+ retrievalDTO.setDeptNames(getDepts(retrievalVO.getInputStr()));
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
return retrievalDTO;
|
|
@@ -141,4 +144,18 @@ public class RetrievalFacade {
|
|
|
|
|
|
return opslist;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 获取科室名称列表
|
|
|
+ */
|
|
|
+ public List<String> getDepts(String name) {
|
|
|
+
|
|
|
+ DeptNode deptNode = new DeptNode();
|
|
|
+ List<String> deptlist = deptNode.getDeptNameList(name, deptRepository);
|
|
|
+
|
|
|
+ return deptlist;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|