chenrui
2025-03-03 68a42ee3b831e9f973c817a9792a79e5f0e4d9f3
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.common.core.domain.entity.User">
        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>