| | |
| | | u1.name_en, |
| | | u1.depart_lims_id |
| | | from user u1 |
| | | left join sys_user_role sur on sur.user_id = u1.id |
| | | where sur.role_id not in (1, 15, 16, 17) |
| | | and u1.status = '0' |
| | | group by u1.id |
| | | WHERE u1.id IN (SELECT user_id FROM sys_user_role sur where sur.role_id in (4)) |
| | | -- WHERE u1.id IN (SELECT user_id FROM sys_user_role sur where sur.role_id not in (1, 15, 16, 17)) |
| | | and u1.status = '0' |
| | | </select> |
| | | |
| | | <!-- 获取当前登录用户部门下的所有用户 --> |
| | |
| | | from user u2 |
| | | where u2.id = #{userId}) |
| | | </select> |
| | | <select id="selectByNames" resultType="com.ruoyi.common.core.domain.entity.User"> |
| | | SELECT id, name FROM user WHERE name IN |
| | | <foreach item="name" collection="names" open="(" separator="," close=")"> |
| | | #{name} |
| | | </foreach> |
| | | </select> |
| | | |
| | | </mapper> |