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
f805df8f
Commit
f805df8f
authored
Apr 10, 2023
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-2023-04' into 'developer'
Feature 2023 04 See merge request
!90
parents
4d7c6321
fffca064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
IDownloadTaskService.java
...gic/cloud/data/hook/api/service/IDownloadTaskService.java
+2
-0
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+3
-0
No files found.
gic-cloud-data-hook-api/src/main/java/com/gic/cloud/data/hook/api/service/IDownloadTaskService.java
View file @
f805df8f
...
@@ -69,4 +69,6 @@ public interface IDownloadTaskService {
...
@@ -69,4 +69,6 @@ public interface IDownloadTaskService {
DownloadProcessDTO
getDownloadProcess
();
DownloadProcessDTO
getDownloadProcess
();
void
checkTaskStatus
(
String
param
);
void
checkTaskStatus
(
String
param
);
public
List
<
DownloadTask
>
getDownloadTaskOfBuilding
(
String
queryDataSource
);
}
}
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
f805df8f
...
@@ -609,9 +609,12 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -609,9 +609,12 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
// }
// }
// }
// }
//之前正在处理的队列需要重新处理
//之前正在处理的队列需要重新处理
// List<DownloadRecord> list = this.downloadTaskService.listUnDownloadTask(QueryDataSource.FLAT_QUERY);
List
<
DownloadTask
>
tasks
=
DownloadTaskServiceImpl
.
getInstance
().
getDownloadTaskOfBuilding
(
QueryDataSource
.
FLAT_QUERY
);
List
<
DownloadTask
>
tasks
=
DownloadTaskServiceImpl
.
getInstance
().
getDownloadTaskOfBuilding
(
QueryDataSource
.
FLAT_QUERY
);
logger
.
info
(
"初始化任务:{}"
,
JSONObject
.
toJSONString
(
tasks
));
logger
.
info
(
"初始化任务:{}"
,
JSONObject
.
toJSONString
(
tasks
));
for
(
DownloadTask
task
:
tasks
)
{
for
(
DownloadTask
task
:
tasks
)
{
// FlatQueryTaskCondition condition = JSON.parseObject(task.getDownloadCondition(), FlatQueryTaskCondition.class);
// DownloadTask downloadTask = DownloadTaskServiceImpl.getInstance().getDownloadTaskById(condition.getTaskId());
String
key
=
LOCK_KEY
+
":"
+
task
.
getId
();
String
key
=
LOCK_KEY
+
":"
+
task
.
getId
();
Object
cache
=
RedisUtil
.
getCache
(
key
);
Object
cache
=
RedisUtil
.
getCache
(
key
);
if
(
cache
!=
null
)
{
if
(
cache
!=
null
)
{
...
...
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