From c92534229c83436ffe9e6752209200dd70b77808 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 17 八月 2023 19:19:44 +0800
Subject: [PATCH] add
---
api/v1/quotation.go | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/api/v1/quotation.go b/api/v1/quotation.go
index 187554c..724da4f 100644
--- a/api/v1/quotation.go
+++ b/api/v1/quotation.go
@@ -98,7 +98,6 @@
ctx.Ok()
}
-
// checkQuotationParams
func checkQuotationParams(quotation request.Quotation) (int, model.Quotation) {
var errCode int
@@ -130,6 +129,8 @@
return errCode, quotationModel
}
+ // 灏嗘椂闂村瓧绗﹁浆鎹负鏃堕棿绫诲瀷
+
quotationModel.ValidityDate = t
quotationModel.ClientId = quotation.ClientId
quotationModel.QuotationStatusId = quotation.QuotationStatusId
@@ -159,14 +160,14 @@
return
}
- quotations, errCode := quotationService.GetQuotationList(params.Page, params.PageSize, params.Keyword)
+ quotations, total, errCode := quotationService.GetQuotationList(params.Page, params.PageSize, params.SearchMap)
if errCode != ecode.OK {
ctx.Fail(errCode)
return
}
ctx.OkWithDetailed(response.QuotationResponse{
- List: quotations,
- Count: len(quotations),
+ List: quotations,
+ Count: int(total),
})
}
--
Gitblit v1.8.0