|
@@ -243,10 +243,10 @@
|
|
and a.id=#{id}
|
|
and a.id=#{id}
|
|
</select>
|
|
</select>
|
|
<select id="findOrgRole" resultType="com.huaxu.model.ProgramItem">
|
|
<select id="findOrgRole" resultType="com.huaxu.model.ProgramItem">
|
|
- select d.ORG_ID orgId,a.TENANT_ID code from uims_user a join uims_user_role b on a.id=b.USER_ID
|
|
|
|
- join uims_role c on b.ROLE_ID= c.ID
|
|
|
|
- join uims_role_org d on c.ID=d.ROLE_ID
|
|
|
|
- where a.id=#{id}
|
|
|
|
|
|
+ select d.ORG_ID orgId code from uims_user_role b
|
|
|
|
+
|
|
|
|
+ join uims_role_org d on b.ROLE_ID=d.ROLE_ID
|
|
|
|
+ where b.USER_ID=#{id}
|
|
</select>
|
|
</select>
|
|
<select id="findOrgs" resultType="com.huaxu.entity.Org">
|
|
<select id="findOrgs" resultType="com.huaxu.entity.Org">
|
|
select ID, TENANT_ID, ORG_TYPE,
|
|
select ID, TENANT_ID, ORG_TYPE,
|