修改mapper文件

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

@ -73,12 +73,9 @@
</update> </update>
<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 dept.org_code as companyCode,dept.name as companyName from sys_user_org org
from sys_user_org o right join sys_dept d inner join sys_dept dept on org.dept_id = dept.dept_id
on o.dept_id = d.dept_id where org.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