src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -74,4 +74,13 @@ SELECT id, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment} </select> <!--按条件查询用户信息--> <select id="getUserListByParam" resultType="org.springblade.modules.system.vo.UserVO"> SELECT id, account, name, real_name, phone, role_id, dept_id, post_id FROM blade_user where is_deleted = 0 <if test="user.roleId!=null and user.roleId!=''"> and role_id like concat('%',#{user.roleId},'%') </if> </select> </mapper>