fix
This commit is contained in:
@@ -49,7 +49,7 @@ func (l *GetPromotionQueryListLogic) GetPromotionQueryList(req *types.GetPromoti
|
|||||||
builder := l.svcCtx.AgentOrderModel.SelectBuilder().
|
builder := l.svcCtx.AgentOrderModel.SelectBuilder().
|
||||||
Where("agent_id = ? AND process_status = 1", agent.Id)
|
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 {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.DB_ERROR), "查询代理订单失败, %v", err)
|
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{
|
return &types.GetPromotionQueryListResp{
|
||||||
Total: int64(len(list)), // 前端仅展示已创建查询条目
|
Total: total, // 前端仅展示已创建查询条目
|
||||||
List: list,
|
List: list,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user