From c7e35e1bca7221ac8a1ffe7df99493daf50b189f Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期四, 06 二月 2025 09:31:21 +0800 Subject: [PATCH] 20250206 --- ltkj-admin/src/main/java/com/ltkj/web/jmreport/JimuController.java | 14 ++++++++++++++ ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java | 4 ++++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/jmreport/JimuController.java b/ltkj-admin/src/main/java/com/ltkj/web/jmreport/JimuController.java index f87b6f4..855ac1d 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/jmreport/JimuController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/jmreport/JimuController.java @@ -1,6 +1,9 @@ package com.ltkj.web.jmreport; +import cn.hutool.json.JSONObject; +import cn.hutool.json.JSONUtil; import com.ltkj.common.core.domain.AjaxResult; +import com.ltkj.hosp.mapper.TestMapper; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; @@ -10,6 +13,7 @@ import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.io.FileInputStream; @@ -34,6 +38,9 @@ private static String CONFIG_PATH; + + @Autowired + private TestMapper testMapper; @Value ("${config.properties}") public void setConfigPath(String path) { @@ -100,4 +107,11 @@ // public int view(){ // return 1; // } + + @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); + } } 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 c81fc79..b12c3f2 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 @@ -444,4 +444,8 @@ "FROM\n" + " 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); } -- Gitblit v1.8.0