|
@@ -431,8 +431,13 @@ func (this *OrganizesController) OrgAllList() {
|
|
|
|
|
|
|
|
var user userRole.Base_User
|
|
var user userRole.Base_User
|
|
|
svc.GetEntityById(this.User.Id, &user)
|
|
svc.GetEntityById(this.User.Id, &user)
|
|
|
- unitId := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
|
|
|
|
|
- ids := svc.GetAllChildById(unitId)
|
|
|
|
|
|
|
+ ids := ""
|
|
|
|
|
+ if this.User.DepartmentId == "" {
|
|
|
|
|
+ ids = svc.GetAllChildById("100000000")
|
|
|
|
|
+ } else {
|
|
|
|
|
+ unitId := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
|
|
|
|
|
+ ids = svc.GetAllChildById(unitId)
|
|
|
|
|
+ }
|
|
|
where := " Id in ( " + ids + " )"
|
|
where := " Id in ( " + ids + " )"
|
|
|
|
|
|
|
|
list := make([]organize.Base_Organize, 0)
|
|
list := make([]organize.Base_Organize, 0)
|