chenrui
2025-03-03 e0b71ec3eac62ec7fa29d2da74bff7712b8ae39d
ruoyi-system/src/main/resources/mapper/system/UserMapper.xml
@@ -30,8 +30,26 @@
        </if>
    </select>
    <!-- 获取用户部门 -->
    <select id="selectUserDepartmentLimsName" resultType="java.lang.String">
        select dl.name
        from user u
                 left join department_lims dl on find_in_set(dl.id, u.depart_lims_id) and dl.id != 1
        where u.id = #{userId}
        limit 1
    </select>
    <!-- 查询用户和部门 -->
    <select id="selectNameAnddepartment" resultType="java.util.Map">
        select u.name  userName,
               dl.name department
        from user u
                 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 id="getUserNow" resultType="com.ruoyi.system.domain.vo.UserVo">
        select u.id,
               c.company,
               u.name,