Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
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
hlcm
leaf-hlcm
Commits
71347dea
Commit
71347dea
authored
Mar 31, 2023
by
TIANZHI.HU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对账单打印更新 add by 39135 HuTianzhi
parent
fafc3ad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
ConExportServiceImpl.java
...hand/hls/hlcm/cont/service/impl/ConExportServiceImpl.java
+11
-4
No files found.
src/main/java/com/hand/hls/hlcm/cont/service/impl/ConExportServiceImpl.java
View file @
71347dea
...
...
@@ -14,8 +14,10 @@ import java.io.*;
import
java.math.BigDecimal
;
import
java.net.URL
;
import
java.net.URLEncoder
;
import
java.text.DateFormat
;
import
java.text.DecimalFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
javax.imageio.ImageIO
;
...
...
@@ -332,10 +334,15 @@ public class ConExportServiceImpl implements ConExportService {
if
(
x
.
compareTo
((
BigDecimal
)
map1
.
get
(
"CF_ITEM"
))
==
0
){
cell
.
setCellValue
(
""
);
}
else
{
DataFormat
df
=
wb
.
createDataFormat
();
// 此处设置数据格式
contentTable
.
setDataFormat
(
df
.
getFormat
(
"#,##0.00"
));
//保留两位小数点
cell
.
setCellStyle
(
contentTable
);
cell
.
setCellValue
(
new
DecimalFormat
().
parse
(
map1
.
get
(
"UNRECEIVED_AMOUNT"
).
toString
()).
doubleValue
());
// 未收金额
DateFormat
dft
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
dueDate
=
dft
.
parse
((
String
)
map1
.
get
(
"DUE_DATE"
));
Date
now
=
new
Date
();
if
(
now
.
after
(
dueDate
)){
DataFormat
df
=
wb
.
createDataFormat
();
// 此处设置数据格式
contentTable
.
setDataFormat
(
df
.
getFormat
(
"#,##0.00"
));
//保留两位小数点
cell
.
setCellStyle
(
contentTable
);
cell
.
setCellValue
(
new
DecimalFormat
().
parse
(
map1
.
get
(
"UNRECEIVED_AMOUNT"
).
toString
()).
doubleValue
());
// 未收金额
}
}
}
else
{
cell
.
setCellValue
(
""
);
// 未收金额
...
...
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