From 8cda09f0c770beed467c0d8bdfd996ec475af1b2 Mon Sep 17 00:00:00 2001 From: zengwh <81383286@qq.com> Date: Thu, 5 Aug 2021 08:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=87=BA=E9=99=A2=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E9=9D=9E=E7=AE=A1=E7=90=86=E5=91=98=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/Archive_MasterMapper.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/resources/mapper/Archive_MasterMapper.xml b/src/main/resources/mapper/Archive_MasterMapper.xml index ac513ca..cc36571 100644 --- a/src/main/resources/mapper/Archive_MasterMapper.xml +++ b/src/main/resources/mapper/Archive_MasterMapper.xml @@ -665,13 +665,20 @@ '是' ELSE '否' - END callBackStatus + END callBackStatus, + CASE + WHEN printInfoTable.patient_id IS NOT NULL THEN + '是' + ELSE + '否' + END printStatus from archive_transfer_dept_user inner join archive_master on archive_master.id = archive_transfer_dept_user.master_id + LEFT JOIN printInfoTable ON printInfoTable.patient_id = archive_master.patient_id LEFT JOIN archive_other_ext ON archive_master.patient_id = archive_other_ext.jzh where user_name = #{userName}