pull/236/head
wangchuxiao 3 years ago
parent dff7a28094
commit d9710ac244

@ -147,7 +147,7 @@ func joinGroups(operationID, userID, userName string, groupIDList []string) {
GroupID: groupID, GroupID: groupID,
Reason: "register auto join", Reason: "register auto join",
InvitedUserIDList: []string{userID}, InvitedUserIDList: []string{userID},
OpUserID: userID, OpUserID: config.Config.Manager.AppManagerUid[0],
} }
resp, err := client.InviteUserToGroup(context.Background(), req) resp, err := client.InviteUserToGroup(context.Background(), req)
if err != nil { if err != nil {

@ -261,7 +261,7 @@ func GetDepartmentParent(departmentID string, dbConn *gorm.DB, parentIDList *[]s
if err != nil { if err != nil {
return err return err
} }
if department.ParentID != "" { if department.DepartmentID != "" {
*parentIDList = append(*parentIDList, department.ParentID) *parentIDList = append(*parentIDList, department.ParentID)
err = GetDepartmentParent(departmentID, dbConn, parentIDList) err = GetDepartmentParent(departmentID, dbConn, parentIDList)
if err != nil { if err != nil {

Loading…
Cancel
Save