|
@@ -554,6 +554,9 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
if (type==null)type=0;
|
|
if (type==null)type=0;
|
|
|
if (type==0)roleId= UserRolesType.COMMON.getCode();
|
|
if (type==0)roleId= UserRolesType.COMMON.getCode();
|
|
|
else if (type==1)roleId=UserRolesType.MANAGE.getCode();
|
|
else if (type==1)roleId=UserRolesType.MANAGE.getCode();
|
|
|
|
|
+ if (SecurityUtils.isSuperAdmin()){
|
|
|
|
|
+ roleId=UserRolesType.ADMIN.getCode();;
|
|
|
|
|
+ }
|
|
|
if (name==null||name.length()<2)return new ArrayList<>();
|
|
if (name==null||name.length()<2)return new ArrayList<>();
|
|
|
Long companyId = deptService.selectCompanyByDeptId();
|
|
Long companyId = deptService.selectCompanyByDeptId();
|
|
|
return userMapper.selectName(name,roleId,companyId);
|
|
return userMapper.selectName(name,roleId,companyId);
|