Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
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
base_platform_enterprise
gic-enterprise-base
Commits
b5c8a828
Commit
b5c8a828
authored
Jun 04, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
300b5bf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
DownloadUtils.java
...d/src/main/java/com/gic/download/utils/DownloadUtils.java
+15
-0
No files found.
gic-enterprise-download/src/main/java/com/gic/download/utils/DownloadUtils.java
View file @
b5c8a828
...
...
@@ -2,6 +2,9 @@ package com.gic.download.utils;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.ctrip.framework.apollo.Config
;
import
com.ctrip.framework.apollo.ConfigService
;
import
com.gic.commons.httpclient.HttpClientUtil
;
import
com.gic.download.constants.ExcelExtensionEnum
;
import
com.gic.download.dto.DownloadReportTempDTO
;
import
com.gic.download.qo.DownloadExcelQO
;
...
...
@@ -407,6 +410,8 @@ public class DownloadUtils {
int
pageNum
=
1
;
int
maxLength
=
102400
;
while
(
maxLength
--
>
0
)
{
//每次获取数据都进行心跳包发送
sendHeart
(
reportId
);
// 分页获取数据
List
<
T
>
objList
=
null
;
try
{
...
...
@@ -537,4 +542,14 @@ public class DownloadUtils {
}
}
private
void
sendHeart
(
Integer
reportId
){
Map
<
String
,
String
>
param
=
new
HashMap
<>();
param
.
put
(
"reportId"
,
reportId
.
toString
());
Config
config
=
ConfigService
.
getConfig
(
"COMMON.4.0-gic-properties"
);
String
url
=
config
.
getProperty
(
"gic_host"
,
""
);
url
+=
"/gic-enterprise-web/receive-heart"
;
LOGGER
.
info
(
"发送心跳包"
);
HttpClientUtil
.
get
(
url
,
param
);
}
}
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