gongchunyi
14 小时以前 23992364d62892baebfba878a2ea9c944d0e4763
ruoyi-system/src/main/resources/mapper/system/UserMapper.xml
@@ -25,7 +25,7 @@
        is_custom
        from user
        where del_flag = '0'
        and id != ) a
        and id != 1) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
@@ -88,11 +88,42 @@
        select id,
               account,
               name,
               name_en
               name_en,
               status
        from user u
        where depart_lims_id = (select u2.depart_lims_id
        where depart_lims_id is not null
          and depart_lims_id != ''
          and depart_lims_id = (select u2.depart_lims_id
                                from user u2
                                where u2.id = #{userId})
    </select>
    <select id="selectUserByDepartmentId" resultType="com.ruoyi.common.core.domain.entity.User"
            parameterType="java.lang.Integer">
        select id,
               dept_id,
               account,
               name,
               name_en,
               user_type,
               email,
               phone,
               sex,
               age,
               signature_url,
               picture_url,
               status,
               del_flag,
               login_ip,
               login_date,
               depart_lims_id,
               company,
               is_custom
        from user
        where del_flag = '0'
          and depart_lims_id is not null
          and depart_lims_id != ''
          and FIND_IN_SET(#{departmentId}, depart_lims_id)
    </select>
</mapper>