From 7fae9aa4889839f040e3db0bffb6cef89cf03dc9 Mon Sep 17 00:00:00 2001 From: shenzhidan Date: Fri, 6 Mar 2026 18:53:26 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=B8=BB=E8=B4=A6=E5=8F=B7=E5=88=A4=E6=96=AD=202=E3=80=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E5=9C=A8=E8=81=8C=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/UserMapper.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web-infrastructure/src/main/resources/mapper/UserMapper.xml b/web-infrastructure/src/main/resources/mapper/UserMapper.xml index e863481..a8bffa1 100644 --- a/web-infrastructure/src/main/resources/mapper/UserMapper.xml +++ b/web-infrastructure/src/main/resources/mapper/UserMapper.xml @@ -29,9 +29,12 @@ LEFT JOIN department d ON d.id = uc.department_id LEFT JOIN post p ON p.id = uc.post_id WHERE uc.delete_enum = 'FALSE' - + AND ( + (uc.user_type IN (1, 2) AND uc.rz_flag = 1) + OR (uc.user_type = 3 AND uc.employment_flag = 1) + ) AND uc.id != uc.corpinfo_id - + AND uc.corpinfo_id = #{params.corpinfoId}