Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
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
huluobin
bailuntec-cost
Commits
a62941fb
Commit
a62941fb
authored
Apr 26, 2023
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复导出明细人民币金额
parent
035b08d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
CostExportServiceImpl.java
...other/module/cost/service/impl/CostExportServiceImpl.java
+6
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostExportServiceImpl.java
View file @
a62941fb
...
...
@@ -119,7 +119,12 @@ public class CostExportServiceImpl implements CostExportService {
row
.
createCell
(
21
).
setCellValue
(
costDto
.
getAccountingSubjectName
());
row
.
createCell
(
22
).
setCellValue
(
costDto
.
getProject
());
row
.
createCell
(
23
).
setCellValue
(
costDto
.
getProjectDate
()
!=
null
?
new
SimpleDateFormat
(
"yyyy-MM"
).
format
(
costDto
.
getProjectDate
())
:
""
);
row
.
createCell
(
24
).
setCellValue
(
costDto
.
getAmountRmb
().
toString
());
//人民币金额
String
amountRmbDto
=
costDto
.
getAmountRmb
().
toString
();
if
(
costDto
.
getAmount
()
!=
null
&&
costDto
.
getAmount
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
costDto
.
getToRmbRate
()
!=
null
&&
costDto
.
getToRmbRate
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
amountRmbDto
=
costDto
.
getAmount
().
multiply
(
costDto
.
getToRmbRate
()).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
toString
();
}
row
.
createCell
(
24
).
setCellValue
(
amountRmbDto
);
rows
++;
}
// 保存到本地,并且返回路径
...
...
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