From 7caeae303d4a93d0af2dc2d2f546987dd192be3c Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期二, 21 一月 2025 19:34:34 +0800 Subject: [PATCH] zjh20250121 --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java index 8d4ebe0..7721309 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java +++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java @@ -231,6 +231,22 @@ "</script>"}) List<Map<String ,Object>> getPacsJcList(@Param("name")String name,@Param("mzh")String mzh,@Param("start")String start,@Param("end")String end); + @DataSource(value = DataSourceType.SLAVE_LIS) + @Select({"<script>" + + "select * from V_JYBGHIS where mzh is not null " + + "<when test='name != null'>" + + "and name = #{name}" + + "</when>" + + "<when test='mzh != null'>" + + "and mzh = #{mzh}" + + "</when>" + + "<when test='start != null and end != null'>" + + "and examinationDate between #{start} and #{end}" + + "</when>" + + "order by examinationDate" + + "</script>"}) + List<Map<String ,Object>> getLisJyList(@Param("name")String name,@Param("mzh")String mzh,@Param("start")String start,@Param("end")String end); + @DataSource(value = DataSourceType.SLAVE_LIS) @@ -259,7 +275,7 @@ " \n" + "FROM\n" + " vi_his_patientinfo a\n" + - "WHERE a.HOSPITALID='chkwyy' AND a.PATIENTTYPE=3 AND a.GH_PATIENTNO =#{tjNum}") + "WHERE a.PATIENTTYPE=3 AND a.GH_PATIENTNO =#{tjNum}") List<LtkjHysqd> getCcXZxYyLtkjHysqdByLisVi(String tjNum); @@ -284,7 +300,7 @@ " SYSDATE() create_time\n" + "FROM\n" + " vi_his_patientresult a JOIN vi_his_patientinfo b ON b.SAMPLEID=a.SAMPLEID\n" + - "WHERE b.HOSPITALID='chkwyy' AND b.PATIENTTYPE=3 AND\n" + + "WHERE b.PATIENTTYPE=3 AND\n" + " a.SAMPLEID = #{tmh}") List<LtkjHybgd> getCcXZxYyLtkjHybgdByLisVi(String tmh); -- Gitblit v1.8.0