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
57f487f4
Commit
57f487f4
authored
May 20, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志
parent
192b2acd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
DownloadUtils.java
...d/src/main/java/com/gic/download/utils/DownloadUtils.java
+2
-1
ExcelUtils.java
...load/src/main/java/com/gic/download/utils/ExcelUtils.java
+1
-2
No files found.
gic-enterprise-download/src/main/java/com/gic/download/utils/DownloadUtils.java
View file @
57f487f4
...
...
@@ -7,6 +7,7 @@ import java.util.*;
import
javax.servlet.http.HttpServletResponse
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.gic.download.constants.ExcelExtensionEnum
;
import
com.gic.download.dto.DownloadReportTempDTO
;
import
com.gic.download.qo.DownloadExcelQO
;
...
...
@@ -211,7 +212,7 @@ public class DownloadUtils {
}
private
<
T
>
void
downloadCommon
(
DownloadExcelQO
param
,
DownloadDataLoader
<
T
>
loader
)
throws
Exception
{
LOGGER
.
info
(
"下载导出数据参数:{}"
,
JSON
.
toJSONString
(
param
));
LOGGER
.
info
(
"下载导出数据参数:{}"
,
JSON
.
toJSONString
(
param
,
SerializerFeature
.
WriteMapNullValue
));
Integer
reportId
=
param
.
getReportId
();
String
fileName
=
param
.
getFileName
();
...
...
gic-enterprise-download/src/main/java/com/gic/download/utils/ExcelUtils.java
View file @
57f487f4
...
...
@@ -207,7 +207,7 @@ public class ExcelUtils {
Row
row1
=
sheet
.
createRow
(
0
);
Row
row2
=
sheet
.
createRow
(
1
);
logger
.
info
(
"headerMap的参数"
+
JSON
.
toJSONString
(
headerMap
)
+
";大小:"
+
headerMap
.
size
());
logger
.
info
(
"headerMap的参数"
+
headerMap
.
toString
());
int
n
=
0
;
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry
:
headerMap
.
entrySet
())
{
Cell
cell1
=
row1
.
createCell
(
n
);
...
...
@@ -216,7 +216,6 @@ public class ExcelUtils {
cell1
.
setCellValue
(
value
);
cell1
.
setCellStyle
(
cellStyle
);
logger
.
info
(
"headerMap的key"
+
entry
.
getKey
()
+
";值:"
+
entry
.
getValue
());
//2层标题
if
(
CollectionUtils
.
isEmpty
(
sonHeader
))
{
//单标题
...
...
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