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
96a65cb9
Commit
96a65cb9
authored
Sep 17, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
取数平台下载优化 See merge request
!11
parents
6a45c0b0
7bba938c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+5
-0
FreeQueryServiceImpl.java
...ic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
+5
-0
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
96a65cb9
...
@@ -508,6 +508,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -508,6 +508,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
this
.
downloadTaskTimer
.
schedule
(
new
TimerTask
()
{
this
.
downloadTaskTimer
.
schedule
(
new
TimerTask
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
try
{
if
(
taskConditions
!=
null
&&
taskConditions
.
size
()
>
0
)
{
if
(
taskConditions
!=
null
&&
taskConditions
.
size
()
>
0
)
{
FlatQueryTaskCondition
condition
=
null
;
FlatQueryTaskCondition
condition
=
null
;
//FlatQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件
//FlatQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件
...
@@ -676,6 +677,10 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -676,6 +677,10 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
}
// IF OVER
}
// IF OVER
}
// IF OVER
}
// IF OVER
}
// 没有任务则忽略
}
// 没有任务则忽略
}
catch
(
Exception
e
){
log
.
debug
(
"自助指标下载异常"
,
e
.
getMessage
());
e
.
printStackTrace
();
}
}
// run Define Over
}
// run Define Over
},
interval
*
1000
,
interval
*
1000
);
// 配置中的值为毫秒
},
interval
*
1000
,
interval
*
1000
);
// 配置中的值为毫秒
}
}
...
...
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
View file @
96a65cb9
...
@@ -358,6 +358,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
...
@@ -358,6 +358,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
this
.
downloadTaskTimer
.
schedule
(
new
TimerTask
()
{
this
.
downloadTaskTimer
.
schedule
(
new
TimerTask
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
try
{
if
(
taskConditions
!=
null
&&
taskConditions
.
size
()
>
0
)
{
if
(
taskConditions
!=
null
&&
taskConditions
.
size
()
>
0
)
{
//FreeQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件
//FreeQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件
FreeQueryTaskCondition
condition
=
null
;
FreeQueryTaskCondition
condition
=
null
;
...
@@ -510,6 +511,10 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
...
@@ -510,6 +511,10 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
}
// IF OVER
}
// IF OVER
}
// IF OVER
}
// IF OVER
}
// 没有任务则忽略
}
// 没有任务则忽略
}
catch
(
Exception
e
){
log
.
debug
(
"自定义查询下载异常"
,
e
.
getMessage
());
e
.
printStackTrace
();
}
}
// run Define Over
}
// run Define Over
},
interval
*
1000
,
interval
*
1000
);
// 配置中的值为毫秒
},
interval
*
1000
,
interval
*
1000
);
// 配置中的值为毫秒
}
}
...
...
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