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
43b38a58
Commit
43b38a58
authored
Jun 24, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
492a2604
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiSalaryServiceImpl.java
+4
-4
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiSalaryServiceImpl.java
View file @
43b38a58
...
@@ -924,12 +924,12 @@ public class ApiSalaryServiceImpl implements ApiSalaryService {
...
@@ -924,12 +924,12 @@ public class ApiSalaryServiceImpl implements ApiSalaryService {
//创建需要校验的key值
//创建需要校验的key值
List
<
String
>
checkKeys
=
new
ArrayList
<>();
List
<
String
>
checkKeys
=
new
ArrayList
<>();
for
(
ApiSalaryBatchAddDTO
addDTO
:
apiSalaryBatchAddDTOList
)
{
for
(
ApiSalaryBatchAddDTO
addDTO
:
apiSalaryBatchAddDTOList
)
{
//获取2条汇款明细的发放金额总和
BigDecimal
totalAmount
=
statisticsAmountByBatchAdd
(
addDTO
);
BigDecimal
totalAmount
=
statisticsAmountByBatchAdd
(
addDTO
);
//校验totalAmount和实发金额是否相等
BigDecimal
paidAmount
=
ObjectUtils
.
defaultIfNull
(
addDTO
.
getPaidAmount
(),
BigDecimal
.
ZERO
);
BigDecimal
paidAmount
=
ObjectUtils
.
defaultIfNull
(
addDTO
.
getPaidAmount
(),
BigDecimal
.
ZERO
);
if
(
paidAmount
.
compareTo
(
totalAmount
)
!=
0
){
// 四舍五入保留两位小数后再比较
//汇款明细合计总金额和实发总金额必须相等,记录key值
BigDecimal
paidScaled
=
paidAmount
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
totalScaled
=
totalAmount
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
if
(
paidScaled
.
compareTo
(
totalScaled
)
!=
0
)
{
String
key
=
addDTO
.
getBrokerBizId
()
+
"|"
+
addDTO
.
getMonth
();
String
key
=
addDTO
.
getBrokerBizId
()
+
"|"
+
addDTO
.
getMonth
();
checkKeys
.
add
(
key
);
checkKeys
.
add
(
key
);
}
}
...
...
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