...
|
...
|
@@ -43,7 +43,8 @@ func (l *MiniAtUsersListLogic) MiniAtUsersList(req *types.MiniUsersListRequest) |
|
|
onlyUsers = article.WhoRead
|
|
|
}
|
|
|
}
|
|
|
if _, users, err = l.svcCtx.UserRepository.FindDepartmentUsers(l.ctx, conn, userToken.CompanyId, domain.NewQueryOptions().WithKV("name", req.Keywords).WithFindOnly()); err != nil {
|
|
|
if _, users, err = l.svcCtx.UserRepository.FindDepartmentUsers(l.ctx, conn, userToken.CompanyId, domain.NewQueryOptions().
|
|
|
WithKV("name", req.Keywords).WithKV("departmentId", req.DepartmentId).WithFindOnly()); err != nil {
|
|
|
return nil, xerr.NewErrMsgErr("用户列表获取失败", err)
|
|
|
}
|
|
|
if len(onlyUsers) > 0 {
|
...
|
...
|
|