소스 검색

修改组织树数据权限bug

huangyh 6 년 전
부모
커밋
718a4df77a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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