| | |
| | | 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> |
| | | |
| | | <!-- 获取检测人员信息 --> |
| | | <select id="selectQualityUserList" resultType="com.ruoyi.common.core.domain.entity.User"> |
| | | select u1.id, |
| | | u1.account, |
| | | u1.name, |
| | | u1.age, |
| | | u1.email, |
| | | u1.phone, |
| | | u1.company, |
| | | u1.is_custom, |
| | | u1.signature_url, |
| | | u1.picture_url, |
| | | u1.name_en, |
| | | u1.depart_lims_id |
| | | from user u1 |
| | | 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> |
| | | |
| | | <!-- 获取当前登录用户部门下的所有用户 --> |
| | | <select id="selectDepartmentLimsUserList" resultType="com.ruoyi.common.core.domain.entity.User"> |
| | | select id, |
| | | account, |
| | | name, |
| | | name_en |
| | | from user u |
| | | where depart_lims_id = (select u2.depart_lims_id |
| | | 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> |