Explorar o código

修改组织树数据权限bug

huangyh %!s(int64=6) %!d(string=hai) anos
pai
achega
718a4df77a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sqlconfig/system_controller/system_get_org_tree.tpl

+ 1 - 1
sqlconfig/system_controller/system_get_org_tree.tpl

@@ -1,5 +1,6 @@
 
 select
+    distinct sys_org.id,
     sys_org.*
 from
     sys_org
@@ -11,4 +12,3 @@ where
 {{if ne .role_rule ""}}
     and {{.role_rule}}
 {{end}}
-GROUP BY sys_org.id