浏览代码

检验检查搜索

DESKTOP-0GD05B0\Administrator 2 年之前
父节点
当前提交
f669f7075d

+ 14 - 1
src/main/java/thyyxxk/webserver/controller/zhuyuanyizheng/JianYanJianChaController.java

@@ -154,9 +154,22 @@ public class JianYanJianChaController {
 
     @GetMapping("/getJyJcZdTree")
     @PassToken
-    public ResultVo<Map<String,List<JyJcItem>>> getJyJcZdTree() {
+    public ResultVo<Map<String, List<JyJcItem>>> getJyJcZdTree() {
         return server.getJyJcZdTree();
     }
 
 
+    @GetMapping("/getJcItem")
+    @PassToken
+    public ResultVo<List<JyJcItem>> getJcItem(@RequestParam("code")String code) {
+        return server.getJcItem(code);
+    }
+
+    @GetMapping("/getJyItem")
+    @PassToken
+    public ResultVo<List<JyJcItem>> getJyItem(@RequestParam("code")String code) {
+        return server.getJyItem(code);
+    }
+
+
 }

+ 43 - 13
src/main/java/thyyxxk/webserver/dao/his/zhuyuanyisheng/JianYanJianChaDao.java

@@ -491,19 +491,21 @@ public interface JianYanJianChaDao {
      *
      * @return
      */
-    @Select("select distinct        rtrim(zy_order_code) as code,\n" +
-            "                       rtrim(name)          as name,\n" +
-            "                       rtrim(class)         as classes,\n" +
-            "                       exec_unit,\n" +
-            "    exec_unit_name   = (select name from zd_unit_code where zd_unit_code.code = exec_unit),\n" +
-            "                       '2'                  as type,\n" +
-            "                       inspect_stuff        as inspectStuff,\n" +
-            "    inspectStuffName = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff)\n" +
-            "from jy_zd_item a,\n" +
-            "     zy_tc_detail_yj b\n" +
-            "where isnull(del_flag, '0') = '0'\n" +
-            "  and isnull(zy_flag, '0') = '0'\n" +
-            "  and a.zy_order_code = b.order_code")
+    @Select("select distinct        rtrim(zy_order_code) as code, " +
+            "                       rtrim(name)          as name, " +
+            "                       rtrim(class)         as classes, " +
+            "                       exec_unit, " +
+            "    exec_unit_name   = (select name from zd_unit_code where zd_unit_code.code = exec_unit), " +
+            "                       '2'                  as type, " +
+            "                       inspect_stuff        as inspectStuff, " +
+            "    inspectStuffName = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff) " +
+            "from jy_zd_item a, " +
+            "     zy_tc_detail_yj b " +
+            "where isnull(del_flag, '0') = '0' " +
+            "  and isnull(zy_flag, '0') = '0' " +
+            "  and a.zy_order_code = b.order_code " +
+            "  and inspect_stuff is not null " +
+            "  and nullif(exec_unit, '') is not null")
     List<JyJcItem> getJyDetailedItems();
 
 
@@ -524,5 +526,33 @@ public interface JianYanJianChaDao {
             "order by class;")
     List<JyJcItem> selectJcDetailItems();
 
+    @Select("select               zy_order_code as code, " +
+            "                     name, " +
+            "                     exec_unit, " +
+            "    exec_unit_name = (select name from zd_unit_code where zd_unit_code.code = exec_unit) " +
+            "from jc_zd_item " +
+            "where del_flag = 0 " +
+            "  and zy_flag = 0 " +
+            "  and (zy_order_code like #{code} or py_code like #{code} or d_code like #{code} or name like #{code})")
+    List<JyJcItem> getJcItem(String code);
+
+    @Select("select distinct        rtrim(zy_order_code) as code, " +
+            "                       rtrim(name)          as name, " +
+            "                       rtrim(class)         as classes, " +
+            "                       exec_unit, " +
+            "    exec_unit_name   = (select name from zd_unit_code where zd_unit_code.code = exec_unit), " +
+            "                       '2'                  as type, " +
+            "                       inspect_stuff        as inspectStuff, " +
+            "    inspectStuffName = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff) " +
+            "from jy_zd_item a, " +
+            "     zy_tc_detail_yj b " +
+            "where isnull(del_flag, '0') = '0' " +
+            "  and isnull(zy_flag, '0') = '0' " +
+            "  and a.zy_order_code = b.order_code " +
+            "  and inspect_stuff is not null " +
+            "  and nullif(exec_unit, '') is not null " +
+            "  and (zy_order_code like #{code} or py_code like #{code} or d_code like #{code} or name like #{code})")
+    List<JyJcItem> getJyItem(String code);
+
 
 }

+ 12 - 1
src/main/java/thyyxxk/webserver/service/zhuyuanyisheng/JianYanJianChaShenQingServer.java

@@ -461,7 +461,7 @@ public class JianYanJianChaShenQingServer {
         String userCode = TokenUtil.getTokenUserId();
         dao.chaRuShenQing(param.getList(), param.getInpatientNo(), param.getName(), param.getAge() + "岁", param.getAdmissTimes(),
                 param.getBedNo(), userCode, huanZheXinXi.getDeptCode(), huanZheXinXi.getDeptCode(), param.getReqType());
-        log.info("数据:{}",JSON.toJSONString(param.getList()));
+        log.info("数据:{}", JSON.toJSONString(param.getList()));
         dao.chaRuShenQingYiZhu(param.getList(), param.getInpatientNo(), param.getAdmissTimes(), userCode, huanZheXinXi.getDeptCode(), huanZheXinXi.getDeptCode(),
                 PublicServer.getInfantFlag(param.getInpatientNo()));
 
@@ -609,5 +609,16 @@ public class JianYanJianChaShenQingServer {
         }
     }
 
+
+    public ResultVo<List<JyJcItem>> getJcItem(String code) {
+        return ResultVoUtil.success(dao.getJcItem(StringUtil.isContainChinese(code)));
+    }
+
+    public ResultVo<List<JyJcItem>> getJyItem(String code) {
+        return ResultVoUtil.success(dao.getJyItem(StringUtil.isContainChinese(code)));
+    }
+
+
+
 }