From a63802fb78c9b248c7e711f8726e80a577e1df68 Mon Sep 17 00:00:00 2001
From: zengwh <81383286@qq.com>
Date: Mon, 28 Feb 2022 09:15:11 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=BA=E9=99=B7=E5=88=97?=
=?UTF-8?q?=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/Archive_Master_FollowingMapper.xml | 26 +++++++++++++------
src/main/resources/mapper/Sign_ListMapper.xml | 4 +--
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/main/resources/mapper/Archive_Master_FollowingMapper.xml b/src/main/resources/mapper/Archive_Master_FollowingMapper.xml
index 40578f90..6d23d5db 100644
--- a/src/main/resources/mapper/Archive_Master_FollowingMapper.xml
+++ b/src/main/resources/mapper/Archive_Master_FollowingMapper.xml
@@ -137,20 +137,23 @@
diff --git a/src/main/resources/mapper/Sign_ListMapper.xml b/src/main/resources/mapper/Sign_ListMapper.xml
index 58899c93..84e432e7 100644
--- a/src/main/resources/mapper/Sign_ListMapper.xml
+++ b/src/main/resources/mapper/Sign_ListMapper.xml
@@ -69,7 +69,7 @@
from (
select
DISTINCT m.id,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time, s.pid,s.createdtime, s.otherInfo, s.masterID, s.detailID, s.dTime,s.sysFlag, s.C1, s.C2, s.C3, s.C4, s.C5, s.N1, s.N2, s.N3, s.T1,
- s.T2,s.T3,s.IsFullText,m.inp_no,m.visit_id,m.name,CONVERT(varchar(10),m.admission_date_time, 120) admissionDateTime,m.dept_name, m.isscaned,m.dept_admission_to,(select COUNT(*) from archive_other where archive_other.pid=s.pid)as num
+ s.T2,s.T3,s.IsFullText,m.inp_no,m.visit_id,m.name,CONVERT(varchar(10),m.admission_date_time, 120) admissionDateTime,m.dept_name, m.isscaned,m.dept_admission_to,(select COUNT(1) from archive_other where archive_other.masterID=s.masterID and archive_other.sysFlag = 1)as num
from archive_other s
left join archive_master m
on s.masterID=m.id
@@ -114,7 +114,7 @@
and m.inp_no = #{inpNo}
and m.visit_id = #{visitId}
and m.name like '%'+#{name}+'%'
- and s.sysFlag ='1'
+ and s.sysFlag =1
)s
LEFT JOIN emr_dictionary d
on s.dept_admission_to=d.code