From 86c879ef9fea2ee497f907f380f9276224d7d009 Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Mon, 18 May 2026 15:02:06 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#545:=20[=E9=97=A8=E8=AF=8A?= =?UTF-8?q?=E5=8C=BB=E7=94=9F=E7=AB=99-=E8=AF=8A=E6=96=AD-=E6=8A=A5?= =?UTF-8?q?=E5=8D=A1]=20=E9=95=BF=E6=95=88=E8=AF=8A=E6=96=AD=E6=A0=87?= =?UTF-8?q?=E8=AF=86=E8=AE=BE=E7=BD=AE=E4=BF=9D=E5=AD=98=E5=B0=B1=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=20=E2=80=94=20=E6=A0=B9=E5=9B=A0=EF=BC=9AgetEncounter?= =?UTF-8?q?Diagnosis=E6=9F=A5=E8=AF=A2SQL(DoctorStationDiagnosisAppMapper.?= =?UTF-8?q?xml)=E6=9C=AA=E5=8C=85=E5=90=ABlong=5Fterm=5Fflag=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=B8=94DiagnosisQueryDto=E7=BC=BA=E5=B0=91=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=88=90=E5=8A=9F=E5=90=8E=E5=88=B7=E6=96=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=97=B6=E5=90=8E=E7=AB=AF=E4=B8=8D=E8=BF=94=E5=9B=9E?= =?UTF-8?q?longTermFlag=E5=80=BC=EF=BC=8C=E5=89=8D=E7=AB=AF=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E5=90=8E=E4=B8=8B=E6=8B=89=E6=A1=86=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=EF=BC=9B=E4=BF=AE=E5=A4=8D=EF=BC=9A1)=20SQL=E6=96=B0=E5=A2=9ET?= =?UTF-8?q?1.long=5Fterm=5Fflag=20AS=20longTermField;=202)=20DTO=E6=96=B0?= =?UTF-8?q?=E5=A2=9ElongTermFlag=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../com/openhis/web/doctorstation/dto/DiagnosisQueryDto.java | 5 +++++ .../mapper/doctorstation/DoctorStationDiagnosisAppMapper.xml | 1 + 2 files changed, 6 insertions(+) diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/DiagnosisQueryDto.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/DiagnosisQueryDto.java index 97dd2a175..54663af2b 100755 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/DiagnosisQueryDto.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/DiagnosisQueryDto.java @@ -96,6 +96,11 @@ public class DiagnosisQueryDto { */ private String diagnosisDoctor; + /** + * 长效诊断标识 + */ + private Integer longTermFlag; + /** * 是否已有传染病报卡(0-无,1-有) */ diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationDiagnosisAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationDiagnosisAppMapper.xml index 9289a857d..bbe5174e2 100755 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationDiagnosisAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationDiagnosisAppMapper.xml @@ -135,6 +135,7 @@ T1.onset_date AS onsetDate, T1.diagnosis_time AS diagnosisTime, T1.doctor AS diagnosisDoctor, + T1.long_term_flag AS longTermFlag, CASE WHEN EXISTS ( SELECT 1 FROM infectious_card T4 WHERE T4.diag_id = T2.id AND T4.delete_flag = '0' AND T4.status >= 1