From 20ca649b9f0fa0af0361024149dee6833858c2fa Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 15 八月 2023 17:12:27 +0800
Subject: [PATCH] fix
---
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 3a8dd0e..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, total, 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,
+ List: quotations,
Count: int(total),
})
-}
\ No newline at end of file
+}
--
Gitblit v1.8.0