From b83df5a43c563bac919dee41d3a8b794f22f1030 Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期五, 13 十二月 2024 19:20:45 +0800
Subject: [PATCH] zjh202412013

---
 ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

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 1d65155..d6f599f 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
@@ -234,7 +234,8 @@
 
 
     @DataSource(value = DataSourceType.SLAVE_LIS)
-    @Select("SELECT * FROM vi_his_patientresult ")
+    @Select("select t.* from vi_his_patientresult t \n" +
+            "\tjoin(select * from vi_his_patientinfo t where t.HOSPITALID='chkwyy' and t.PATIENTNO like '800%') b on b.SAMPLEID = t.SAMPLEID")
     List<Map<String, Object>> getCcXZxYyLisJgSt();
 
 
@@ -245,7 +246,7 @@
             "  NULL bbbh,\n" +
             "  NULL bbmc,\n" +
             "  a.SFXMID xmid,\n" +
-            "  a.SFXMNAME xmmc,\n" +
+            "  REPLACE(a.SFXMNAME,'tj_','') xmmc,\n" +
             "  a.SENDDATE sqsj,\n" +
             "  a.SENDDOCTOR sqys,\n" +
             "  a.CHECKDATE jgsj,\n" +
@@ -301,11 +302,11 @@
             "  NULL bgysid,\n" +
             "  a.SQRJ sqsj,\n" +
             "  a.BGSJ jgsj,\n" +
-            "  a.JCMC jcxmmc,\n" +
+            "  REPLACE(a.JCMC,'tj_','') jcxmmc,\n" +
             "  a.JCMCID jcxmid,\n" +
             "  a.JCBW bw,\n" +
-            "  a.JCJL jgzt,\n" +
-            "  a.JCSJ jgbx\n" +
+            "  TRIM(a.JCJL) jgzt,\n" +
+            "  TRIM(a.JCSJ) jgbx\n" +
             "   \n" +
             "FROM\n" +
             "  ris.V_TJ_JCBGXX_NEWTJ a  WHERE a.HIS_ID=#{tjNum}")
@@ -320,14 +321,17 @@
             "  a.JCMC xmmc,\n" +
             "  NULL bg_mig,\n" +
             "  NULL bg_url,\n" +
-            "  a.JCSJ bg_nr,\n" +
+            "  TRIM(a.JCSJ) bg_nr,\n" +
             "  a.SHYS shysdm,\n" +
             "  a.SHYS shysxm,\n" +
-            "  a.JCJL yxbx,\n" +
+            "  TRIM(a.JCJL) yxbx,\n" +
             "  a.BGSJ zdsj,\n" +
             "  a.SQRJ sqsj,\n" +
             "  a.JCBW jcbw\n" +
             "FROM\n" +
             "  ris.V_TJ_JCBGXX_NEWTJ a  WHERE a.HIS_ID=#{tjNum}")
     List<LtkjExamJcbgd> getCcXZxYyPacsLtkjExamJcbgd(String tjNum);
+
+
+    List<List<?>> tjplUpdateDetatilByVi(Map<String,Object> map);
 }

--
Gitblit v1.8.0