|
|
|
@ -74,9 +74,11 @@ |
|
|
|
|
|
|
|
|
|
<select id="getOrgsByUserId" parameterType="long" resultType="com.dxhy.admin.sys.entity.SysCompanyEntity"> |
|
|
|
|
select d.org_code companyCode, d.name companyName |
|
|
|
|
from sys_user_org o left join sys_dept d |
|
|
|
|
from sys_user_org o right join sys_dept d |
|
|
|
|
on o.dept_id = d.dept_id |
|
|
|
|
where o.userid = userId |
|
|
|
|
and d.org_code is not null |
|
|
|
|
and d.name is not null |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|