From 3abe8cbda996cb2002f5baefa21d32d922ee5c76 Mon Sep 17 00:00:00 2001 From: zhangyue Date: Thu, 7 May 2026 17:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AE=89=E5=85=A8=E7=8E=AF?= =?UTF-8?q?=E4=BF=9D=E6=A3=80=E6=9F=A5=E7=94=A8=E6=88=B7=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection/SafetyEnvironmentalInspectionMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web-infrastructure/src/main/resources/mapper/inspection/SafetyEnvironmentalInspectionMapper.xml b/web-infrastructure/src/main/resources/mapper/inspection/SafetyEnvironmentalInspectionMapper.xml index 04e1a78..65c13d4 100644 --- a/web-infrastructure/src/main/resources/mapper/inspection/SafetyEnvironmentalInspectionMapper.xml +++ b/web-infrastructure/src/main/resources/mapper/inspection/SafetyEnvironmentalInspectionMapper.xml @@ -17,7 +17,7 @@ select i.*, kp.project_name, - GROUP_CONCAT(DISTINCT iuu.name) inspection_user_name, + GROUP_CONCAT(DISTINCT showu.name) inspection_user_name, indc.corp_name inspected_corpinfo_name, xmu.name xgf_master_user_name @@ -35,12 +35,12 @@ AND iu_show.type = mt.max_type - JOIN safety_environmental_inspection_user iu + LEFT JOIN safety_environmental_inspection_user iu ON iu.inspection_id = i.inspection_id AND iu.delete_enum = 'FALSE' AND iu.type = mt.max_type AND iu.STATUS = 0 - left join user iuu on iuu.id = iu.user_id + left join user showu on showu.id = iu_show.user_id left join corp_info indc on indc.id = i.inspected_corpinfo_id left join user xmu on xmu.id = i.xgf_master_user_id where i.delete_enum = 'FALSE'