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
8646ce66
Commit
8646ce66
authored
Sep 02, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化修改
parent
2cad6e78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+2
-0
FreeQueryServiceImpl.java
...ic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
+2
-0
MyApplicationContextAware.java
...oud/data/hook/service/init/MyApplicationContextAware.java
+2
-2
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
8646ce66
...
@@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
javax.sql.DataSource
;
import
javax.sql.DataSource
;
import
java.io.*
;
import
java.io.*
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -463,6 +464,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -463,6 +464,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
}
}
@Override
@Override
@PostConstruct
public
void
initTask
(){
public
void
initTask
(){
List
<
DownloadRecord
>
list
=
DownloadTaskServiceImpl
.
getInstance
().
listUnDownloadTask
(
QueryDataSource
.
FLAT_QUERY
);
List
<
DownloadRecord
>
list
=
DownloadTaskServiceImpl
.
getInstance
().
listUnDownloadTask
(
QueryDataSource
.
FLAT_QUERY
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
...
...
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
View file @
8646ce66
...
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
java.io.*
;
import
java.io.*
;
import
java.nio.charset.Charset
;
import
java.nio.charset.Charset
;
import
java.sql.*
;
import
java.sql.*
;
...
@@ -313,6 +314,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
...
@@ -313,6 +314,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
@Override
@Override
@PostConstruct
public
void
initTask
()
{
public
void
initTask
()
{
List
<
DownloadRecord
>
list
=
DownloadTaskServiceImpl
.
getInstance
().
listUnDownloadTask
(
QueryDataSource
.
FREE_QUERY
);
List
<
DownloadRecord
>
list
=
DownloadTaskServiceImpl
.
getInstance
().
listUnDownloadTask
(
QueryDataSource
.
FREE_QUERY
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
...
...
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/init/MyApplicationContextAware.java
View file @
8646ce66
...
@@ -21,8 +21,8 @@ public class MyApplicationContextAware implements ApplicationContextAware {
...
@@ -21,8 +21,8 @@ public class MyApplicationContextAware implements ApplicationContextAware {
@Override
@Override
public
void
setApplicationContext
(
ApplicationContext
appContext
)
throws
BeansException
{
public
void
setApplicationContext
(
ApplicationContext
appContext
)
throws
BeansException
{
this
.
freeQueryService
.
initTask
();
//
this.freeQueryService.initTask();
this
.
flatQueryResultService
.
initTask
();
//
this.flatQueryResultService.initTask();
log
.
info
(
"任务初始化"
);
log
.
info
(
"任务初始化"
);
}
}
...
...
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