| | |
| | | @Param("nn")String nn); |
| | | |
| | | @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>" + |
| | | "order by examinationDate" + |
| | | // @Select({"<script>" + |
| | | // "select * from V_JCBGLBHIS where mzh is not null " + |
| | | // "and (mzh = #{mzh} or name = #{name} )" + |
| | | // "order by examinationDate" + |
| | | // "</script>"}) |
| | | @Select({"<script>", |
| | | "SELECT * FROM V_JCBGLBHIS ", |
| | | "WHERE name = #{name} ", |
| | | "<if test='mzh != null and mzh != \"\"'>", |
| | | " OR mzh = #{mzh} ", |
| | | "</if>", |
| | | "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); |
| | | 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" + |
| | | |
| | | @DataSource(value = DataSourceType.SLAVE_HIS) |
| | | // @Select({"<script>" + |
| | | // "select * from V_JYBGHIS where mzh is not null " + |
| | | // "and (mzh = #{mzh} or name = #{name} )" + |
| | | // "order by examinationDate" + |
| | | // "</script>"}) |
| | | @Select({"<script>", |
| | | "select * from V_JYBGHIS where name = #{name}", |
| | | "<if test='mzh != null and mzh != \"\"'>", |
| | | " OR mzh = #{mzh} ", |
| | | "</if>", |
| | | "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) |
| | | @Select("select t.* from vi_his_patientresult t \n" + |
| | |
| | | " \n" + |
| | | "FROM\n" + |
| | | " vi_his_patientinfo a\n" + |
| | | "WHERE a.PATIENTTYPE=3 AND a.GH_PATIENTNO =#{tjNum}") |
| | | List<LtkjHysqd> getCcXZxYyLtkjHysqdByLisVi(String tjNum); |
| | | "WHERE a.PATIENTTYPE=3 AND a.GH_PATIENTNO =#{tjNum} AND a.HOSPITALID =#{dqyyyqbm}") |
| | | List<LtkjHysqd> getCcXZxYyLtkjHysqdByLisVi(@Param("tjNum") String tjNum,@Param("dqyyyqbm") String dqyyyqbm); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | // @DataSource(value = DataSourceType.SLAVE_WS) |
| | | @Select("SELECT aa.tjh,ws.pro_id tmh,aa.bbbh,aa.bbmc,ws.pro_id xmid,aa.xmmc,aa.sqsj,aa.sqys,aa.jgsj,aa.sqdh,aa.sqrxm,aa.sqrdm,aa.jybgjg,aa.create_time FROM tj_wsxm ws LEFT JOIN (\n" + |
| | | @Select("SELECT aa.tjh,CONCAT(aa.tjh,RIGHT(ws.pro_id, 6)) tmh,aa.bbbh,aa.bbmc,ws.pro_id xmid,aa.xmmc,aa.sqsj,aa.sqys,aa.jgsj,aa.sqdh,aa.sqrxm,aa.sqrdm,aa.jybgjg,aa.create_time FROM tj_wsxm ws LEFT JOIN (\n" + |
| | | " SELECT\n" + |
| | | " a.brid tjh,\n" + |
| | | " a.brid tmh,\n" + |
| | |
| | | List<LtkjHysqd> getWsxmLtkjHysqdByLisVi(String tjNum); |
| | | |
| | | // @DataSource(value = DataSourceType.SLAVE_WS) |
| | | @Select("SELECT ws.pro_id tmh,aa.jcxmid,aa.jcxm,NULL tdh,aa.jyjg,null jgdw,null fwzdz,null fwzgz,aa.jysj,aa.shsj,NULL shys,aa.shysmc,NULL tpurl,NULL ycbz,aa.create_time\n" + |
| | | @Select("SELECT CONCAT(aa.tmh,RIGHT(ws.pro_id, 6)) tmh,aa.jcxmid,aa.jcxm,NULL tdh,aa.jyjg,null jgdw,null fwzdz,null fwzgz,aa.jysj,aa.shsj,NULL shys,aa.shysmc,NULL tpurl,NULL ycbz,aa.create_time\n" + |
| | | " FROM tj_wsxm ws \n" + |
| | | " LEFT JOIN (\n" + |
| | | " SELECT distinct a.brid tmh,a.xmbm jcxmid,a.xmmc jcxm,NULL tdh,a.result jyjg,null jgdw,null fwzdz,null fwzgz,null fwz,a.bgsj jysj,a.bgys jyys,a.bgsj shsj," + |
| | |
| | | |
| | | |
| | | |
| | | @DataSource(value = DataSourceType.SLAVE_WS) |
| | | @Select("SELECT * from lis_result a where a.brid=#{tjNum}") |
| | | // @DataSource(value = DataSourceType.SLAVE_WS) |
| | | // @Select("SELECT * from lis_result a where a.brid=#{tjNum}") |
| | | // List<Aws> getWsxmLtkjHysqdByLisViBySLAVEWS(String tjNum); |
| | | |
| | | @DataSource(value = DataSourceType.SLAVE_WS) |
| | | @Select("select t.brid,t.xmbm,t.xmmc,t.result,t.gdpd ,t.xmckz,t.dw,t.bgys,max(bgsj) bgsj\n" + |
| | | " from lis_result t WHERE t.brid=#{tjNum} \n" + |
| | | " group by t.brid,t.xmbm,t.xmmc,t.result,t.gdpd,t.xmckz,t.dw,t.bgys") |
| | | List<Aws> getWsxmLtkjHysqdByLisViBySLAVEWS(String tjNum); |
| | | |
| | | |
| | |
| | | " SYSDATE create_time\n" + |
| | | " \n" + |
| | | "FROM\n" + |
| | | " ris.V_TJ_JCBGXX_NEWTJ a WHERE trim(a.HIS_ID)=#{tjNum}") |
| | | List<LtkjExamJcsqd> getCcXZxYyPacsLtkjExamJcsqd(String tjNum); |
| | | " ris.V_TJ_JCBGXX_NEWTJ a WHERE trim(a.HIS_ID)=#{tjNum} AND a.HOSTPITALID =#{dqyyyqbm} ") |
| | | List<LtkjExamJcsqd> getCcXZxYyPacsLtkjExamJcsqd(@Param("tjNum") String tjNum,@Param("dqyyyqbm") String dqyyyqbm); |
| | | |
| | | |
| | | @DataSource(value = DataSourceType.SLAVE_PACS) |
| | |
| | | @DataSource(value = DataSourceType.MASTER) |
| | | @Select("call tj_bingzhongtongji(#{p_start,mode=IN},#{p_end,mode=IN})") |
| | | List<Map<String ,Object>> getBingZhongInfo(@Param("p_start") String start,@Param("p_end") String end); |
| | | |
| | | @Select("select * from v_gnkssctp where gnlx=#{gnlx}") |
| | | List<Map<String ,Object>> getExeUploadImgListByGnLx(@Param("gnlx") String gnlx); |
| | | } |