zjh
2025-03-13 a9c99f81d343efd85dec9229db6c4cf52e497641
ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java
@@ -219,31 +219,15 @@
    @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>" +
                "and (mzh = #{mzh} or name like '%' + #{name} + '%' )" +
                "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>" +
            "and (mzh = #{mzh} or name like '%' + #{name} + '%' )" +
            "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);