From 03ed7c87fb70e0a2a842aef19120ff5b03356496 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Wed, 28 Jan 2026 20:27:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[=E8=AF=95=E9=AA=8C=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E9=80=89=E6=8B=A9=E8=AE=A1=E5=88=92=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/system/SysUserMapper.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hxhq-modules/hxhq-system/src/main/resources/mapper/system/SysUserMapper.xml b/hxhq-modules/hxhq-system/src/main/resources/mapper/system/SysUserMapper.xml index d7b23f3..ccfb53e 100644 --- a/hxhq-modules/hxhq-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/hxhq-modules/hxhq-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -262,16 +262,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM `sys_user` u WHERE del_flag='0' AND u.`user_id`<>1 -- 试验下-有studySubjectId就不需要 - - - - - - - - - - + + AND + ( + u.`user_id` IN(SELECT leader FROM `t_study` WHERE del_flag='0' AND id=#{studyId}) + OR + u.`user_id` IN(SELECT leader FROM `t_study_subject` WHERE del_flag='0' AND study_id=#{studyId}) + OR + u.`user_id` IN(SELECT user_id FROM `t_study_subject_user` WHERE del_flag='0' AND study_id=#{studyId}) + ) + -- 学科下