浏览代码

新增查询接口

xiaochan 2 年之前
父节点
当前提交
8698ee355e

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>thyyxxk</groupId>
     <artifactId>web-server</artifactId>
-    <version>11.2.1</version>
+    <version>11.2.2</version>
     <name>web-server</name>
     <description>server for yibao-web</description>
     <properties>

+ 5 - 0
src/main/java/thyyxxk/webserver/controller/zhuyuanyizheng/PatInfoQueryController.java

@@ -39,4 +39,9 @@ public class PatInfoQueryController {
     public ResultVo<List<GetDropdownBox>> employeeList(@RequestParam("code") String code) {
         return service.employeeList(code);
     }
+
+    @GetMapping("/getSurgery")
+    public ResultVo<List<GetDropdownBox>> getSurgery(@RequestParam("code") String code) {
+        return service.getSurgery(code);
+    }
 }

+ 5 - 0
src/main/java/thyyxxk/webserver/dao/his/zhuyuanyisheng/PatientInfoQueryDao.java

@@ -27,6 +27,11 @@ public interface PatientInfoQueryDao {
             "where (code like #{code} or name like #{code})")
     List<GetDropdownBox> selectDiagnsis(String code);
 
+    @Select("select code, name " +
+            "from zd_icd9_cm3 " +
+            "where (code like #{code} or name like #{code})")
+    List<GetDropdownBox> selectSurgery(String code);
+
 
     @Select("select code, name " +
             "from a_employee_mi " +

+ 8 - 0
src/main/java/thyyxxk/webserver/service/zhuyuanyisheng/PatientInfoQueryService.java

@@ -14,6 +14,7 @@ import thyyxxk.webserver.utils.ListUtil;
 import thyyxxk.webserver.utils.ResultVoUtil;
 import thyyxxk.webserver.utils.StringUtil;
 
+import java.io.PushbackInputStream;
 import java.util.List;
 
 @Service
@@ -35,6 +36,13 @@ public class PatientInfoQueryService {
         return ResultVoUtil.success(dao.selectDiagnsis(StringUtil.isContainChinese(code)));
     }
 
+    /**
+     * @return 获取手术
+     */
+    public ResultVo<List<GetDropdownBox>> getSurgery(String code) {
+        return ResultVoUtil.success(dao.selectSurgery(StringUtil.isContainChinese(code)));
+    }
+
     public ResultVo<List<GetDropdownBox>> employeeList(String code) {
         return ResultVoUtil.success(dao.employeeList(StringUtil.isContainChinese(code)));
     }

+ 2 - 1
src/main/java/thyyxxk/webserver/service/zhuyuanyisheng/emr/EmrServer.java

@@ -282,7 +282,6 @@ public class EmrServer {
         if (ListUtil.isBlank(fragment)) {
             return;
         }
-//        log.info("数据:id:{},片段{}", id, JSON.toJSONString(fragment));
         dao.delOldFragment(id);
         List<List<EmrProgressNote>> lists = ListUtils.partition(fragment, 50);
         for (List<EmrProgressNote> list : lists) {
@@ -888,4 +887,6 @@ public class EmrServer {
         return ResultVoUtil.success(dao.getOpRecordList(patNo, times));
     }
 
+
+
 }