| | |
| | | // } |
| | | |
| | | @GetMapping("/getBingZhong") |
| | | public String getBingZhongInfo(@RequestParam("start") String start, @RequestParam("end") String end){ |
| | | JSONObject object = JSONUtil.createObj(); |
| | | object.putOpt("data",testMapper.getBingZhongInfo(start,end)); |
| | | return JSONUtil.toJsonStr(object); |
| | | public String getBingZhongInfo(@RequestParam("start") String start, @RequestParam("end") String end,@RequestParam(required = true,value = "hospId") String hospId){ |
| | | try { |
| | | dataSourceConfig.addDataSource(hospId); |
| | | DataSourceContextHolder.setDataSourceKey(hospId); |
| | | JSONObject object = JSONUtil.createObj(); |
| | | object.putOpt("data",testMapper.getBingZhongInfo(start,end)); |
| | | return JSONUtil.toJsonStr(object); |
| | | }finally { |
| | | DataSourceContextHolder.setDataSourceKey("default"); |
| | | } |
| | | } |
| | | } |
| | |
| | | " LTEMR.V_TJ_JCBGXX_NEWTJ a WHERE trim(a.HIS_ID)=#{tjNum}") |
| | | List<LtkjExamJcbgd> getCcXZxYyPacsLtkjExamJcbgd1(String tjNum); |
| | | |
| | | @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); |
| | | |