fix
This commit is contained in:
@@ -51,7 +51,11 @@ func (l *AdminGetAgentListLogic) AdminGetAgentList(req *types.AdminGetAgentListR
|
|||||||
for _, c := range closures {
|
for _, c := range closures {
|
||||||
ids = append(ids, c.DescendantId)
|
ids = append(ids, c.DescendantId)
|
||||||
}
|
}
|
||||||
builder = builder.Where("id IN (?)", ids)
|
interfaceIds := make([]interface{}, len(ids))
|
||||||
|
for i, id := range ids {
|
||||||
|
interfaceIds[i] = id
|
||||||
|
}
|
||||||
|
builder = builder.Where("id IN (?)", interfaceIds...)
|
||||||
}
|
}
|
||||||
|
|
||||||
agents, total, err := l.svcCtx.AgentModel.FindPageListByPageWithTotal(l.ctx, builder, req.Page, req.PageSize, "id DESC")
|
agents, total, err := l.svcCtx.AgentModel.FindPageListByPageWithTotal(l.ctx, builder, req.Page, req.PageSize, "id DESC")
|
||||||
|
|||||||
Reference in New Issue
Block a user