ruoyi-system/src/main/resources/mapper/system/UserMapper.xml
@@ -47,4 +47,17 @@ left join department_lims dl on find_in_set(dl.id, u.depart_lims_id) and dl.id != 1 where find_in_set(u.id, #{participant}) </select> <!-- 获取当前登录用户信息 --> <select id="getUserNow" resultType="com.ruoyi.system.domain.vo.UserVo"> select u.id, c.company, u.name, c.code, u.phone, c.id departId from user u left join custom c on u.company = c.id where u.id = #{userId} </select> </mapper>