From 4b2c52b17abef8521f9211b4865e1cad0288b12a Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 21 十月 2023 17:47:50 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/crm --- api/v1/quotation.go | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/api/v1/quotation.go b/api/v1/quotation.go index a6f8790..7beeb3b 100644 --- a/api/v1/quotation.go +++ b/api/v1/quotation.go @@ -34,6 +34,13 @@ return } + if quotation.MemberId == 0 { + userInfo := utils.GetUserInfo(c) + if userInfo.UserType == constvar.UserTypeSub { + quotation.MemberId = userInfo.CrmUserId + } + } + errCode = quotationService.AddQuotation("ation) if errCode != ecode.OK { ctx.Fail(errCode) -- Gitblit v1.8.0