|
@@ -249,9 +249,10 @@
|
|
|
and a.id=#{id}
|
|
|
</select>
|
|
|
<select id="findOrgRole" resultType="com.huaxu.model.ProgramItem">
|
|
|
- select d.ORG_ID orgId from uims_user_role b
|
|
|
+ select d.ORG_ID orgId,c.ORG_TYPE from uims_user_role b
|
|
|
|
|
|
- join uims_role_org d on b.ROLE_ID=d.ROLE_ID
|
|
|
+ join uims_role_org d on b.ROLE_ID=d.ROLE_ID join uims_org c
|
|
|
+ on c.id=d.ORG_ID
|
|
|
where b.USER_ID=#{id} and b.status!=0 and d.status!=0
|
|
|
</select>
|
|
|
<select id="findOrgs" resultType="com.huaxu.entity.Org">
|