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
354fadce
Commit
354fadce
authored
Mar 31, 2023
by
TIANZHI.HU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对账单打印更新 add by 39135 HuTianzhi
parent
94ddf1b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ConExportServiceImpl.java
...hand/hls/hlcm/cont/service/impl/ConExportServiceImpl.java
+4
-2
No files found.
src/main/java/com/hand/hls/hlcm/cont/service/impl/ConExportServiceImpl.java
View file @
354fadce
...
@@ -334,10 +334,12 @@ public class ConExportServiceImpl implements ConExportService {
...
@@ -334,10 +334,12 @@ public class ConExportServiceImpl implements ConExportService {
if
(
x
.
compareTo
((
BigDecimal
)
map1
.
get
(
"CF_ITEM"
))
==
0
){
if
(
x
.
compareTo
((
BigDecimal
)
map1
.
get
(
"CF_ITEM"
))
==
0
){
cell
.
setCellValue
(
""
);
cell
.
setCellValue
(
""
);
}
else
{
}
else
{
// 系统时间大于应收日的才set值
DateFormat
dft
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
DateFormat
dft
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
dueDate
=
dft
.
parse
((
String
)
map1
.
get
(
"DUE_DATE"
));
Date
dueDate
=
dft
.
parse
((
String
)
map1
.
get
(
"DUE_DATE"
));
Date
now
=
new
Date
();
// 去除时分秒
if
(
now
.
after
(
dueDate
)){
Date
now
=
dft
.
parse
(
dft
.
format
(
new
Date
()));
if
(
Objects
.
nonNull
(
dueDate
)
&&
now
.
compareTo
(
dueDate
)
==
1
){
DataFormat
df
=
wb
.
createDataFormat
();
// 此处设置数据格式
DataFormat
df
=
wb
.
createDataFormat
();
// 此处设置数据格式
contentTable
.
setDataFormat
(
df
.
getFormat
(
"#,##0.00"
));
//保留两位小数点
contentTable
.
setDataFormat
(
df
.
getFormat
(
"#,##0.00"
));
//保留两位小数点
cell
.
setCellStyle
(
contentTable
);
cell
.
setCellStyle
(
contentTable
);
...
...
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