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
91b01813
Commit
91b01813
authored
Apr 06, 2023
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新版本的下载
parent
ca427a5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+2
-2
Test.java
gic-cloud-data-hook-service/src/test/java/Test.java
+18
-0
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
91b01813
...
@@ -661,7 +661,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -661,7 +661,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
* 执行 下载
* 执行 下载
* @param interval
* @param interval
*/
*/
p
rivate
void
runDealHiveFile
(
Integer
interval
)
{
p
ublic
void
runDealHiveFile
(
Integer
interval
)
{
distService
.
scheduleAtFixedRate
(
new
Runnable
()
{
distService
.
scheduleAtFixedRate
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
...
@@ -869,7 +869,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -869,7 +869,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
}
}
List
<
String
>
xlsxFiles
=
new
ArrayList
<>();
List
<
String
>
xlsxFiles
=
new
ArrayList
<>();
AtomicInteger
count
=
new
AtomicInteger
(
0
);
AtomicInteger
count
=
new
AtomicInteger
(
0
);
AtomicReference
<
XlsxFileInfo
>
currentFile
=
n
ull
;
AtomicReference
<
XlsxFileInfo
>
currentFile
=
n
ew
AtomicReference
<>()
;
readCsvFile
(
condition
.
getTableId
(),
dirName
,(
cells
,
titles
,
firstFlag
)->{
readCsvFile
(
condition
.
getTableId
(),
dirName
,(
cells
,
titles
,
firstFlag
)->{
if
(
count
.
get
()==
0
)
{
if
(
count
.
get
()==
0
)
{
XlsxFileInfo
xlsxFileInfo
=
new
XlsxFileInfo
();
XlsxFileInfo
xlsxFileInfo
=
new
XlsxFileInfo
();
...
...
gic-cloud-data-hook-service/src/test/java/Test.java
0 → 100644
View file @
91b01813
import
com.gic.cloud.data.hook.service.impl.FlatQueryResultServiceImpl
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
locations
=
{
"classpath*:applicationContext-conf.xml"
})
public
class
Test
{
@Autowired
private
FlatQueryResultServiceImpl
flatQueryResultService
;
@org
.
junit
.
Test
public
void
test
(){
flatQueryResultService
.
runDealHiveFile
(
3
);
}
}
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