Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
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
bi-report
Commits
96679816
Commit
96679816
authored
May 04, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
89c73561
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+1
-1
ExcelServiceImpl.java
...ei/data/gateway/server/service/impl/ExcelServiceImpl.java
+19
-14
No files found.
lib/java/bi-report-service/.idea/workspace.xml
View file @
96679816
...
...
@@ -216,7 +216,7 @@
<workItem
from=
"1588148891822"
duration=
"2318000"
/>
<workItem
from=
"1588152718016"
duration=
"1463000"
/>
<workItem
from=
"1588154601852"
duration=
"28557000"
/>
<workItem
from=
"1588344252163"
duration=
"7
420
000"
/>
<workItem
from=
"1588344252163"
duration=
"7
786
000"
/>
</task>
<servers
/>
</component>
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/ExcelServiceImpl.java
View file @
96679816
...
...
@@ -134,21 +134,26 @@ public class ExcelServiceImpl implements ExcelService {
* @param value
*/
private
void
setCellValue
(
XSSFCell
cell
,
Object
value
)
{
if
(
value
instanceof
String
)
{
cell
.
setCellValue
((
String
)
value
);
}
else
if
(
value
instanceof
Integer
)
{
cell
.
setCellValue
((
Integer
)
value
);
}
else
if
(
value
instanceof
Float
)
{
cell
.
setCellValue
((
Float
)
value
);
}
else
if
(
value
instanceof
Double
){
cell
.
setCellValue
((
Double
)
value
);
}
else
if
(
value
instanceof
Date
)
{
cell
.
setCellValue
((
Date
)
value
);
}
else
if
(
value
instanceof
Boolean
)
{
cell
.
setCellValue
((
Boolean
)
value
);
}
else
{
if
(
null
!=
value
){
if
(
value
instanceof
String
)
{
cell
.
setCellValue
((
String
)
value
);
}
else
if
(
value
instanceof
Integer
)
{
cell
.
setCellValue
((
Integer
)
value
);
}
else
if
(
value
instanceof
Float
)
{
cell
.
setCellValue
((
Float
)
value
);
}
else
if
(
value
instanceof
Double
){
cell
.
setCellValue
((
Double
)
value
);
}
else
if
(
value
instanceof
Date
)
{
cell
.
setCellValue
((
Date
)
value
);
}
else
if
(
value
instanceof
Boolean
)
{
cell
.
setCellValue
((
Boolean
)
value
);
}
else
{
cell
.
setCellValue
(
"unknown value type"
);
logger
.
error
(
"value's type is {}!"
,
value
.
getClass
().
toString
());
}
}
else
{
cell
.
setCellValue
(
""
);
logger
.
error
(
"
value's type is unknown
!"
);
logger
.
error
(
"
the value is null
!"
);
}
}
}
...
...
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