Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
b8a9447a
Commit
b8a9447a
authored
Apr 29, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表导出报错问题
parent
29dd5042
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+2
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
b8a9447a
...
...
@@ -581,7 +581,7 @@ public class ReportGeneratorImpl {
}
else
if
(
StringUtils
.
isNotBlank
(
cellData
.
getManualAmount
())){
manualAmount
=
new
BigDecimal
(
cellData
.
getManualAmount
());
}
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
amount
.
add
(
manualAmount
).
setScale
(
2
).
toString
());
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
amount
.
add
(
manualAmount
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
toString
());
}
catch
(
NumberFormatException
e
){
//判断是否有手工数据源有得话以手工数据源为主
if
(
StringUtils
.
isNotBlank
(
cellData
.
getKeyinData
())){
...
...
@@ -668,7 +668,7 @@ public class ReportGeneratorImpl {
}
else
if
(
StringUtils
.
isNotBlank
(
cellData
.
getManualAmount
())){
manualAmount
=
new
BigDecimal
(
cellData
.
getManualAmount
());
}
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
amount
.
add
(
manualAmount
).
setScale
(
2
).
toString
());
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
amount
.
add
(
manualAmount
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
toString
());
}
catch
(
NumberFormatException
e
){
//判断是否有手工数据源有得话以手工数据源为主
if
(
StringUtils
.
isNotBlank
(
cellData
.
getKeyinData
())){
...
...
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