From 6194956fa9d039eda543bc292e456909787eb066 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 16 十月 2023 14:49:58 +0800
Subject: [PATCH] Revert "aps grpc env"
---
service/quotation.go | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/service/quotation.go b/service/quotation.go
index ede0edc..3f32563 100644
--- a/service/quotation.go
+++ b/service/quotation.go
@@ -9,6 +9,15 @@
type QuotationService struct{}
func (QuotationService) AddQuotation(quotation *model.Quotation) int {
+ //鏍规嵁閿�鍞満浼歩d鍘绘煡璇㈠鎴穒d
+ if quotation.ClientId == 0 {
+ record, err := model.NewSaleChanceSearch().SetId(quotation.SaleChanceId).Find()
+ if err != nil {
+ return ecode.SaleChanceNotExist
+ }
+ quotation.ClientId = record.ClientId
+ quotation.ContactId = record.ContactId
+ }
err := model.NewQuotationSearch(nil).Create(quotation)
if err != nil {
return ecode.QuotationExist
--
Gitblit v1.8.0