...
|
...
|
@@ -1145,8 +1145,8 @@ func getDepartmentors(header *protocol.RequestHeader, relatedDeparmentId int64) |
|
|
if e := json.Unmarshal([]byte(departments.Managers), &tmpIds); e == nil {
|
|
|
if len(tmpIds) > 0 {
|
|
|
ids = append(ids, tmpIds...)
|
|
|
break
|
|
|
}
|
|
|
break
|
|
|
} else {
|
|
|
log.Error(e)
|
|
|
}
|
...
|
...
|
@@ -1156,7 +1156,7 @@ func getDepartmentors(header *protocol.RequestHeader, relatedDeparmentId int64) |
|
|
//relatedDeparmentId = int64departments.ParentId
|
|
|
lastDepartmentId = departments.ParentId
|
|
|
if departments, err = models.GetDepartmentById(int(departments.ParentId)); err != nil {
|
|
|
log.Error(relatedDeparmentId, err)
|
|
|
log.Error(departments.ParentId, err)
|
|
|
err = nil
|
|
|
break
|
|
|
}
|
...
|
...
|
|