Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-csf
Commits
32517d1f
Commit
32517d1f
authored
Jan 06, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端对接问题修复62
parent
f2c06b4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
yd-csf-service/src/main/java/com/yd/csf/service/vo/CommissionExpectedExportDTO.java
+26
-7
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/vo/CommissionExpectedExportDTO.java
View file @
32517d1f
...
...
@@ -7,6 +7,7 @@ import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import
com.alibaba.excel.annotation.write.style.HeadRowHeight
;
import
com.yd.csf.service.model.CommissionExpected
;
import
lombok.Data
;
import
org.apache.commons.lang3.ObjectUtils
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
@@ -14,7 +15,7 @@ import java.util.Date;
@Data
@ContentRowHeight
(
15
)
@HeadRowHeight
(
20
)
@ColumnWidth
(
1
5
)
@ColumnWidth
(
2
5
)
public
class
CommissionExpectedExportDTO
{
@ExcelProperty
(
"应收账款编号"
)
...
...
@@ -71,10 +72,18 @@ public class CommissionExpectedExportDTO {
@ColumnWidth
(
20
)
private
BigDecimal
paidAmount
;
@ExcelProperty
(
"已入账比例(%)"
)
@ColumnWidth
(
20
)
private
BigDecimal
paidRatio
;
@ExcelProperty
(
"待入账金额(HKD)"
)
@ColumnWidth
(
20
)
private
BigDecimal
pendingAmount
;
@ExcelProperty
(
"待入账比例(%)"
)
@ColumnWidth
(
20
)
private
BigDecimal
pendingRatio
;
@ExcelProperty
(
"备注"
)
@ColumnWidth
(
30
)
private
String
remark
;
...
...
@@ -108,12 +117,22 @@ public class CommissionExpectedExportDTO {
dto
.
setStatus
(
getStatusText
(
vo
.
getStatus
()));
dto
.
setExpectedAmount
(
vo
.
getExpectedAmount
());
dto
.
setPaidAmount
(
vo
.
getPaidAmount
());
// 计算待入账金额
BigDecimal
pendingAmount
=
vo
.
getExpectedAmount
()
!=
null
&&
vo
.
getPaidAmount
()
!=
null
?
vo
.
getExpectedAmount
().
subtract
(
vo
.
getPaidAmount
())
:
BigDecimal
.
ZERO
;
dto
.
setPendingAmount
(
pendingAmount
);
dto
.
setPaidRatio
(
vo
.
getPaidRatio
());
BigDecimal
paidAmount1
=
ObjectUtils
.
defaultIfNull
(
vo
.
getPaidAmount
(),
BigDecimal
.
ZERO
);
BigDecimal
paidRatio1
=
ObjectUtils
.
defaultIfNull
(
vo
.
getPaidRatio
(),
BigDecimal
.
ZERO
);
// 待入账比例、待入账金额
if
(
vo
.
getCommissionRatio
()
!=
null
)
{
dto
.
setPaidRatio
(
paidRatio1
);
dto
.
setPendingRatio
(
vo
.
getCommissionRatio
().
subtract
(
paidRatio1
));
if
(
vo
.
getExpectedAmount
()
!=
null
)
{
dto
.
setPaidAmount
(
paidAmount1
);
dto
.
setPendingAmount
(
vo
.
getExpectedAmount
().
subtract
(
paidAmount1
));
}
}
else
if
(
vo
.
getAmount
()
!=
null
)
{
dto
.
setPaidAmount
(
paidAmount1
);
dto
.
setPendingAmount
(
vo
.
getAmount
().
subtract
(
paidAmount1
));
}
dto
.
setRemark
(
vo
.
getRemark
());
dto
.
setCreateTime
(
vo
.
getCreateTime
());
...
...
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