From c59053ef98942526930480345636ad3bb7b55596 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 27 七月 2023 14:28:40 +0800
Subject: [PATCH] fix

---
 api/v1/quotation.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/v1/quotation.go b/api/v1/quotation.go
index 187554c..3a8dd0e 100644
--- a/api/v1/quotation.go
+++ b/api/v1/quotation.go
@@ -159,7 +159,7 @@
 		return
 	}
 
-	quotations, errCode := quotationService.GetQuotationList(params.Page, params.PageSize, params.Keyword)
+	quotations, total, errCode := quotationService.GetQuotationList(params.Page, params.PageSize, params.Keyword)
 	if errCode != ecode.OK {
 		ctx.Fail(errCode)
 		return
@@ -167,6 +167,6 @@
 
 	ctx.OkWithDetailed(response.QuotationResponse{
 		List: quotations,
-		Count: len(quotations),
+		Count: int(total),
 	})
-}
+}
\ No newline at end of file

--
Gitblit v1.8.0