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}) + ) + -- 学科下