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