diff --git a/app/main/api/internal/logic/agent/getpromotionquerylistlogic.go b/app/main/api/internal/logic/agent/getpromotionquerylistlogic.go index ac801c7..a99fbd4 100644 --- a/app/main/api/internal/logic/agent/getpromotionquerylistlogic.go +++ b/app/main/api/internal/logic/agent/getpromotionquerylistlogic.go @@ -49,7 +49,7 @@ func (l *GetPromotionQueryListLogic) GetPromotionQueryList(req *types.GetPromoti builder := l.svcCtx.AgentOrderModel.SelectBuilder(). Where("agent_id = ? AND process_status = 1", agent.Id) - orders, _, err := l.svcCtx.AgentOrderModel.FindPageListByPageWithTotal(l.ctx, builder, req.Page, req.PageSize, "create_time DESC") + orders, total, err := l.svcCtx.AgentOrderModel.FindPageListByPageWithTotal(l.ctx, builder, req.Page, req.PageSize, "create_time DESC") if err != nil { return nil, errors.Wrapf(xerr.NewErrCode(xerr.DB_ERROR), "查询代理订单失败, %v", err) } @@ -118,7 +118,7 @@ func (l *GetPromotionQueryListLogic) GetPromotionQueryList(req *types.GetPromoti } return &types.GetPromotionQueryListResp{ - Total: int64(len(list)), // 前端仅展示已创建查询条目 + Total: total, // 前端仅展示已创建查询条目 List: list, }, nil }