|
@@ -53,7 +53,7 @@ func (l *GetEmployeeSearchLogic) GetEmployeeSearch(req *types.EmployeeListReq, t
|
|
|
|
|
|
employeeIds := make([]uint64, 0)
|
|
|
if isLogin {
|
|
|
- allocagent, err := l.svcCtx.DB.AllocAgent.Query().Where(
|
|
|
+ allocAgentItem, err := l.svcCtx.DB.AllocAgent.Query().Where(
|
|
|
allocagent.Or(
|
|
|
allocagent.UserIDEQ(userId),
|
|
|
allocagent.OrganizationID(organizationID),
|
|
@@ -64,7 +64,7 @@ func (l *GetEmployeeSearchLogic) GetEmployeeSearch(req *types.EmployeeListReq, t
|
|
|
return nil, errorx.NewApiInternalError("获取智能体信息失败")
|
|
|
}
|
|
|
} else {
|
|
|
- employeeIds = append(employeeIds, allocagent.Agents...)
|
|
|
+ employeeIds = append(employeeIds, allocAgentItem.Agents...)
|
|
|
}
|
|
|
}
|
|
|
|