From a934b5ea45f84c71d9d309a1c69bfa21d1898b4a Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 17 八月 2023 10:08:36 +0800 Subject: [PATCH] 增加服务人员返回 --- 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