From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 18 十一月 2023 17:25:25 +0800
Subject: [PATCH] crm获取aps项目模块信息

---
 service/assign.go |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/service/assign.go b/service/assign.go
index ff4db62..88e789e 100644
--- a/service/assign.go
+++ b/service/assign.go
@@ -13,9 +13,11 @@
 
 func (AssignService) Assign(memberId int, ids []int, modelType string) int {
 	// check member exist
-	_, err := model.NewUserSearch(nil).SetUserId(memberId).First()
-	if err != nil {
-		return ecode.UserNotExist
+	if memberId != 0 {
+		_, err := model.NewUserSearch(nil).SetUserId(memberId).First()
+		if err != nil {
+			return ecode.UserNotExist
+		}
 	}
 
 	var errCode int

--
Gitblit v1.8.0