pull/455/head
wangchuxiao 2 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 2d55e92d8c
commit 7d9494ebb2

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

Loading…
Cancel
Save