Browse Source

找寻类型

hym 4 years ago
parent
commit
4d3f9e521c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      user_auth/src/main/resources/mapper/UserMapper.xml

+ 3 - 2
user_auth/src/main/resources/mapper/UserMapper.xml

@@ -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">