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
91d9e624
Commit
91d9e624
authored
Nov 04, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取数平台调整
parent
9ea3b354
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
FreeQueryController.java
...java/com/gic/cloud/data/hook/web/FreeQueryController.java
+8
-1
No files found.
gic-cloud-data-hook/src/main/java/com/gic/cloud/data/hook/web/FreeQueryController.java
View file @
91d9e624
...
@@ -161,6 +161,9 @@ public class FreeQueryController {
...
@@ -161,6 +161,9 @@ public class FreeQueryController {
Integer
dataPermission
=
this
.
enterpriseService
.
getEnterpriseSettingByEnterpriseId
(
SessionContextUtils
.
getLoginUserEnterpriseId
()).
getDataPermission
();
Integer
dataPermission
=
this
.
enterpriseService
.
getEnterpriseSettingByEnterpriseId
(
SessionContextUtils
.
getLoginUserEnterpriseId
()).
getDataPermission
();
System
.
out
.
println
(
"!!!!!!!!:"
+
dataPermission
);
System
.
out
.
println
(
"!!!!!!!!:"
+
dataPermission
);
String
curLimit
=
"1000"
;
String
curLimit
=
"1000"
;
if
(
sql
.
indexOf
(
"extract_member_information"
)
>
0
){
sql
=
"SELECT tmpTable.* FROM ("
+
sql
+
") AS tmpTable LIMIT 1000"
;
}
else
{
if
(
sql
.
indexOf
(
"limit"
)>
0
||
sql
.
indexOf
(
"LIMIT"
)>
0
){
if
(
sql
.
indexOf
(
"limit"
)>
0
||
sql
.
indexOf
(
"LIMIT"
)>
0
){
int
start
=
0
;
int
start
=
0
;
if
(
sql
.
indexOf
(
"limit"
)>
0
){
if
(
sql
.
indexOf
(
"limit"
)>
0
){
...
@@ -176,7 +179,11 @@ public class FreeQueryController {
...
@@ -176,7 +179,11 @@ public class FreeQueryController {
curLimit
=
1000
+
""
;
curLimit
=
1000
+
""
;
}
}
}
}
FreeQueryResult
freeQueryResult
=
this
.
freeQueryService
.
getFreeQueryResult
(
sql
+
" limit "
+
curLimit
,
enterpriseId
,
queryDataType
,
dataPermission
);
sql
=
sql
+
" limit "
+
curLimit
;
}
FreeQueryResult
freeQueryResult
=
this
.
freeQueryService
.
getFreeQueryResult
(
sql
,
enterpriseId
,
queryDataType
,
dataPermission
);
dto
.
setEndTime
(
new
Date
());
dto
.
setEndTime
(
new
Date
());
this
.
searchLogService
.
saveLog
(
dto
);
this
.
searchLogService
.
saveLog
(
dto
);
return
freeQueryResult
;
return
freeQueryResult
;
...
...
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