mirror of
https://gitee.com/republicline/rax-remote-v2.git
synced 2025-08-24 04:04:57 +08:00
用户导入导出根据当前用户医院id
This commit is contained in:
parent
29a0abce70
commit
56adadb7b6
|
@ -276,6 +276,10 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
*/
|
||||
@Override
|
||||
public List<UserExcelVO> listUser(UserDTO userDTO) {
|
||||
String hosptital = sysHospitalService.getCurrentHospital();
|
||||
if (StringUtils.hasText(hosptital) && !"null".equals(hosptital)) {
|
||||
userDTO.setHospitalId(Long.valueOf(hosptital));
|
||||
}
|
||||
// 根据数据权限查询全部的用户信息
|
||||
List<UserVO> voList = baseMapper.selectVoList(userDTO);
|
||||
// 转换成execl 对象输出
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
FROM sys_user u
|
||||
LEFT JOIN sys_dept d ON d.dept_id = u.dept_id
|
||||
<where>
|
||||
u.del_flag = '0'
|
||||
u.del_flag = '0' and u.user_id != '1'
|
||||
<if test="query.username != null and query.username != ''">
|
||||
<bind name="usernameLike" value="'%' + query.username + '%'"/>
|
||||
AND u.username LIKE #{usernameLike}
|
||||
|
@ -201,6 +201,10 @@
|
|||
<if test="query.deptId != null and query.deptId != ''">
|
||||
AND u.dept_id = #{query.deptId}
|
||||
</if>
|
||||
|
||||
<if test="query.hospitalId != null and query.hospitalId != ''">
|
||||
and u.hospital_id = #{query.hospitalId}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
<if test="_databaseId != 'mssql'">
|
||||
|
|
Loading…
Reference in New Issue
Block a user