Selaa lähdekoodia

角色管理添加用户部门下拉修改

huahaiyan 6 vuotta sitten
vanhempi
commit
564f266691
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/dashoo.cn/backend/api/controllers/casbin/role.go

+ 2 - 2
src/dashoo.cn/backend/api/controllers/casbin/role.go

@@ -114,9 +114,9 @@ func (this *RoleController) OrgAllList() {
 		unitId := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
 		ids = svc.GetAllChildById(unitId)
 	}
-	where := " and Id in ( " + ids + " )"
+	where := " Id in ( " + ids + " )"
 
-	list := make([]organize.Base_Organize, 0)
+	list := make([]commonorgnize.Base_Organize, 0)
 	svc.GetEntities(&list, where)
 	var datainfo DataInfo
 	datainfo.Items = list