| | |
| | | group by u1.id |
| | | </select> |
| | | |
| | | <!-- 获取检测员角色人员信息 --> |
| | | <select id="selectInspectorUserList" resultType="com.ruoyi.common.core.domain.entity.User"> |
| | | select u1.id, |
| | | u1.account, |
| | | u1.name, |
| | | u1.name_en, |
| | | u1.email, |
| | | u1.phone, |
| | | u1.company, |
| | | u1.is_custom, |
| | | u1.signature_url, |
| | | u1.picture_url, |
| | | u1.depart_lims_id |
| | | from user u1 |
| | | left join sys_user_role sur on sur.user_id = u1.id |
| | | left join sys_role r on r.role_id = sur.role_id and r.role_name = '检测员' |
| | | where r.role_id is not null |
| | | and u1.status = '0' |
| | | and u1.del_flag = '0' |
| | | and u1.id != 1 |
| | | group by u1.id |
| | | </select> |
| | | |
| | | <!-- 获取当前登录用户部门下的所有用户 --> |
| | | <select id="selectDepartmentLimsUserList" resultType="com.ruoyi.common.core.domain.entity.User"> |
| | | select id, |