|
|
|
@ -73,12 +73,9 @@ |
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<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 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 dept.org_code as companyCode,dept.name as companyName from sys_user_org org |
|
|
|
|
inner join sys_dept dept on org.dept_id = dept.dept_id |
|
|
|
|
where org.userid = #{userId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|