src/main/java/org/jeecg/modules/system/mapper/xml/SysUserMapper.xml
@@ -228,4 +228,12 @@ #{name} </foreach> </select> <!-- 根据班组Id查询 --> <select id="getUserByGroupId" resultType="org.jeecg.modules.system.entity.SysUser"> select * from sys_user where del_flag = 0 and id in (select user_id from base_user_group where group_id=#{groupId}) <if test="username!=null and username!=''"> and username = #{username} </if> </select> </mapper>