@Service public class UserDataPowerService extends Object
@Comment(value="\u83b7\u53d6\u6570\u636e\u6743\u9650SQL") public String getPowerSQL(String fieldName, int loginUserId) throws SQLException
权限类型说明: - power_type = 1:机构权限,查询该用户所在机构下所有用户的ID - power_type = 2:自定义权限,直接使用用户配置的可见用户列表 - power_type = 3:角色权限,查找具有相同角色的所有用户ID(当前实现存在逻辑问题)
fieldName - 查询字段名,通常是用户表中的某个外键字段如"user_id"loginUserId - 当前登录用户的IDSQLException - 当数据库操作异常或用户不存在时抛出此异常Copyright © 2026. All rights reserved.