zhangqian
2023-08-15 2c53a4e2c7ededc1f07324d797430e8d4a0607a1
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),
   })
}
}