修改mapper文件

release
yishiqihuasheng 2 years ago
parent 16f7b4b086
commit e35935a956
  1. 4
      dxhy-admin/src/main/resources/mapper/sys/SysUserOrgDao.xml

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

Loading…
Cancel
Save