From a6c2fcf68b27c50f2390e6b9d7e050cc3f76eceb Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期三, 26 二月 2025 15:07:23 +0800 Subject: [PATCH] 切库 --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java | 40 +++++++++++++++++++++------------------- 1 files changed, 21 insertions(+), 19 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 c577c8a..5e22811 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 @@ -219,31 +219,33 @@ @DataSource(value = DataSourceType.SLAVE_PACS) @Select({"<script>" + "select * from V_JCBGLBHIS 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>" + +// "<when test='name != null'>" + +// "and name = #{name}" + +// "</when>" + +// "<when test='mzh != null'>" + +// "and mzh = #{mzh}" + + "and (mzh = #{mzh} or name like CONCAT('%', #{name}, '%') )" + +// "</when>" + +// "<when test='start != null and end != null'>" + +// "and examinationDate between #{start} and #{end}" + +// "</when>" + "order by examinationDate" + "</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) + @DataSource(value = DataSourceType.SLAVE_HIS) @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>" + +// "<when test='name != null'>" + +// "and name = #{name}" + +// "</when>" + +// "<when test='mzh != null'>" + +// "and mzh = #{mzh}" + + "and (mzh = #{mzh} or name like CONCAT('%', #{name}, '%') )" + +// "</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); -- Gitblit v1.8.0