zhaowenxuan
2025-02-20 6b52b67e8ea269bc61a47251c2bca5c432e94672
ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java
@@ -219,15 +219,16 @@
    @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);
@@ -235,15 +236,16 @@
    @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>" +
//            "<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);