From 5cfffc61a4cb93ca8cd47a92d6baf977982fe647 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 18 Apr 2022 16:46:03 +0800 Subject: [PATCH] organization --- pkg/common/db/mysql_model/im_mysql_model/organization_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/mysql_model/im_mysql_model/organization_model.go b/pkg/common/db/mysql_model/im_mysql_model/organization_model.go index 76eb949a0..8a1006acb 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/organization_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/organization_model.go @@ -111,7 +111,7 @@ func GetUserInDepartment(userID string) (error, []db.DepartmentMember) { return err, nil } var departmentMemberList []db.DepartmentMember - err = dbConn.Table("department_members").Where("user_id=?", userID).Take(&departmentMemberList).Error + err = dbConn.Table("department_members").Where("user_id=?", userID).Find(&departmentMemberList).Error return err, departmentMemberList }