From 0f15e7b48d064fa6faf99832ca5f4be9bc54e199 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 11 八月 2023 13:41:09 +0800
Subject: [PATCH] fix

---
 api/v1/client.go |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/api/v1/client.go b/api/v1/client.go
index 6b565b3..1162b78 100644
--- a/api/v1/client.go
+++ b/api/v1/client.go
@@ -57,7 +57,6 @@
 	//if params.MemberId == 0 {
 	//	return ecode.InvalidParams, nil
 	//}
-	client.MemberId = params.MemberId
 
 	t, err := checkTimeFormat(params.NextVisitTime)
 	if err != nil {
@@ -84,6 +83,7 @@
 	client.ClientOriginId = params.ClientOriginId
 	client.ClientLevelId = params.ClientLevelId
 	client.DetailAddress = params.DetailAddress
+	client.ClientStatusId = params.ClientStatusId
 	client.Remark = params.Remark
 	client.Number = params.Number
 	client.ServiceMemberId = params.ServiceMemberId
@@ -97,6 +97,7 @@
 	client.Business.IndustryId = params.IndustryId
 	client.Business.EnterpriseNatureId = params.EnterpriseNatureId
 	client.Business.EnterpriseScaleId = params.EnterpriseScaleId
+	client.MemberId = params.MemberId
 
 	if params.Contact.Name != "" {
 		// assign the client's member id to contact when adding

--
Gitblit v1.8.0