Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-hook
gic-cloud
Commits
a75ca6cf
Commit
a75ca6cf
authored
Jun 11, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取数平台权限
parent
d002b701
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
FlatQueryController.java
...java/com/gic/cloud/data/hook/web/FlatQueryController.java
+5
-0
No files found.
gic-cloud-data-hook/src/main/java/com/gic/cloud/data/hook/web/FlatQueryController.java
View file @
a75ca6cf
...
...
@@ -15,7 +15,9 @@ import com.gic.cloud.data.hook.api.entity.Global;
import
com.gic.cloud.data.hook.api.service.IFlatQueryResultService
;
import
com.gic.cloud.data.hook.api.service.IFlatQueryTableService
;
import
com.gic.cloud.data.hook.api.service.IMyFlatQueryService
;
import
com.gic.enterprise.api.constant.StoreWidget
;
import
com.gic.enterprise.api.dto.EnterpriseSettingDTO
;
import
com.gic.enterprise.api.dto.StoreWidgetDTO
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.enterprise.api.service.StoreWidgetService
;
import
com.gic.web.common.utils.SessionContextUtils
;
...
...
@@ -297,6 +299,8 @@ public class FlatQueryController {
EnterpriseSettingDTO
setting
=
this
.
enterpriseService
.
getEnterpriseSettingByEnterpriseId
(
user
.
getEnterpriseId
());
if
(
setting
.
getEnableAccessControl
()
!=
null
&&
setting
.
getEnableAccessControl
()
==
1
)
{
PowerClerkDTO
clerkDetail
=
this
.
powerService
.
getClerkDetail
(
user
.
getUserId
());
StoreWidgetDTO
widgetDTO
=
this
.
storeWidgetService
.
getStoreWidgetBykey
(
clerkDetail
.
getStoreWidgetId
());
if
(
StoreWidget
.
ALL
!=
widgetDTO
.
getSelectType
()){
List
<
String
>
authStoreList
=
this
.
storeWidgetService
.
getStoreWidgetStore
(
clerkDetail
.
getStoreWidgetId
(),
user
.
getEnterpriseId
(),
null
,
null
,
null
);
list
.
addAll
(
authStoreList
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
...
...
@@ -304,6 +308,7 @@ public class FlatQueryController {
}
}
}
}
return
list
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment