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
c76034d3
Commit
c76034d3
authored
Dec 06, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
取数平台调整 See merge request
!36
parents
d4cb130e
89debdf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+5
-4
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
c76034d3
...
...
@@ -548,7 +548,8 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
break
;
}
// IF OVER
}
// FOR OVER
takeFile
(
condition
);
Connection
connection
=
HiveHelper
.
getDownloadHiveConnection
();
takeFile
(
condition
,
connection
);
}
// 没有任务则忽略
}
catch
(
Exception
e
){
log
.
debug
(
"自助指标下载异常"
,
e
.
getMessage
());
...
...
@@ -581,7 +582,8 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
break
;
}
// IF OVER
}
// FOR OVER
takeFile
(
condition
);
Connection
connection
=
HiveHelper
.
getBalaDownloadHiveConnection
();
takeFile
(
condition
,
connection
);
}
// 没有任务则忽略
}
catch
(
Exception
e
){
log
.
debug
(
"自助指标下载异常"
,
e
.
getMessage
());
...
...
@@ -591,7 +593,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
},
interval
*
1000
,
interval
*
1000
,
TimeUnit
.
MILLISECONDS
);
}
private
void
takeFile
(
FlatQueryTaskCondition
condition
){
private
void
takeFile
(
FlatQueryTaskCondition
condition
,
Connection
conn
){
if
(
condition
!=
null
)
{
// 更新任务状态
DownloadTask
task
=
DownloadTaskServiceImpl
.
getInstance
().
getDownloadTaskById
(
condition
.
getTaskId
());
...
...
@@ -609,7 +611,6 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
0
,
condition
.
getAuthStoreIdList
());
Connection
conn
=
HiveHelper
.
getDownloadHiveConnection
();
log
.
debug
(
"runDownloadTask.run"
,
"获取商户连接:"
+
task
.
getId
());
if
(
conn
!=
null
)
{
try
{
...
...
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