From bbe24137c96c17cd8d481e1dc58d4265ab8a24e8 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 08 八月 2023 09:43:50 +0800 Subject: [PATCH] 添加ignore --- api/v1/salesReturn.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/salesReturn.go b/api/v1/salesReturn.go index 5ada12a..20b1949 100644 --- a/api/v1/salesReturn.go +++ b/api/v1/salesReturn.go @@ -145,7 +145,7 @@ return } - salesReturns, errCode := salesReturnService.GetSalesReturnList(params.Page, params.PageSize, params.Keyword) + salesReturns, total, errCode := salesReturnService.GetSalesReturnList(params.Page, params.PageSize, params.Keyword) if errCode != ecode.OK { ctx.Fail(errCode) return @@ -153,6 +153,6 @@ ctx.OkWithDetailed(response.SalesReturnResponse{ List: salesReturns, - Count: len(salesReturns), + Count: int(total), }) -} +} \ No newline at end of file -- Gitblit v1.8.0