|
|
@@ -578,6 +578,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
|
|
|
@Override
|
|
|
public Object selectName(String name,Integer type){
|
|
|
+ if (name==null||name.length()<2)return new ArrayList<>();
|
|
|
Long roleId=null;
|
|
|
if (type==null)type=0;
|
|
|
if (type==0)roleId= UserRolesType.COMMON.getCode();
|
|
|
@@ -585,7 +586,6 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
if (SecurityUtils.isSuperAdmin()){
|
|
|
roleId=UserRolesType.ADMIN.getCode();;
|
|
|
}
|
|
|
- if (name==null||name.length()<2)return new ArrayList<>();
|
|
|
Long companyId = deptService.selectCompanyByDeptId();
|
|
|
return userMapper.selectName(name,roleId,companyId);
|
|
|
}
|