Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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-platform-auth
Commits
4bd83e95
Commit
4bd83e95
authored
Nov 06, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载组件测试类修复
parent
a520e061
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
CollaboratorController.java
...a/com/gic/auth/web/controller/CollaboratorController.java
+2
-1
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/CollaboratorController.java
View file @
4bd83e95
...
...
@@ -73,6 +73,8 @@ public class CollaboratorController extends DownloadUtils{
report
.
setReportEndTime
(
DateUtil
.
strToDate
(
"2019-01-01 00:00:00"
,
"yyyy-MM-dd HH:mm:ss"
));
report
.
setReportStartTime
(
DateUtil
.
strToDate
(
"2018-01-01 00:00:00"
,
"yyyy-MM-dd HH:mm:ss"
));
Integer
reportId
=
DataDownloadUtils
.
createDownloadReport
(
report
);
//临时路径
String
path
=
request
.
getSession
().
getServletContext
().
getRealPath
(
"/excel/csv/collaborator/file/"
);
//异步生成文件并上传到腾讯云
ExecutorPoolSingleton
.
getInstance
().
executeTask
(
new
Runnable
()
{
@Override
...
...
@@ -87,7 +89,6 @@ public class CollaboratorController extends DownloadUtils{
};
String
[]
headers
=
new
String
[]
{
"协作人名称"
,
"手机号"
};
String
[]
fields
=
new
String
[]
{
"collaboratorName"
,
"phone"
};
String
path
=
request
.
getSession
().
getServletContext
().
getRealPath
(
"/excel/csv/collaborator/file/"
);
try
{
download
(
path
,
reportId
,
fileName
,
excelExtensionCode
,
Arrays
.
asList
(
headers
),
Arrays
.
asList
(
fields
),
loader
,
null
);
}
catch
(
Exception
e
)
{
...
...
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