|
|
发表于 2007/7/23 20:35:51
|
显示全部楼层
select c.user_name as login_name,
d.full_name as employee_name,
f.name as department_name,
a.user_id as user_id,
a.responsibility_id as responsibility_id,
b.RESPONSIBILITY_NAME as RESPONSIBILITY_NAME
from FND_USER_RESP_GROUPS a,
FND_RESPONSIBILITY_VL b,
fnd_user c,
hr_employees d,
per_assignments_f e,
hr_all_organization_units_tl f
where a.user_id = c.user_id
and c.employee_id = d.employee_id
and c.employee_id = e.PERSON_ID
and e.ORGANIZATION_ID = f.organization_id
and a.responsibility_id = b.RESPONSIBILITY_ID
-- and sysdate > e.EFFECTIVE_START_DATE
-- and sysdate < e.EFFECTIVE_END_DATE
order by c.description, c.user_name, a.responsibility_id
这个是查一个用户对应的职责
然后再关联请求组FND_REQUEST_GROUPS和FND_REQUEST_GROUP_UNITS 可以找到用户可以提交的请求
[ 本帖最后由 jessie 于 2007-7-23 20:56 编辑 ] |
|