Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
d2fed072
Commit
d2fed072
authored
Jul 19, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hyc-项目余额调整
parent
62c8dafa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
EkpSalaryInfoServiceImpl.java
...ud/plus/v1/ekp/service/impl/EkpSalaryInfoServiceImpl.java
+3
-3
No files found.
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpSalaryInfoServiceImpl.java
View file @
d2fed072
...
...
@@ -363,11 +363,11 @@ public class EkpSalaryInfoServiceImpl extends ServiceImpl<EkpSalaryInfoMapper, E
info
=
baseMapper
.
getClaimInfoByDeptNo
(
deptNo
,
"3"
);
if
(
Optional
.
ofNullable
(
info
).
isPresent
())
{
if
(
info
.
getSurMoney
().
add
(
money
).
compareTo
(
BigDecimal
.
ZERO
)
>=
0
)
{
info
.
setAdjustMoney
(
money
);
info
.
setAdjustMoney
(
money
.
negate
()
);
info
.
setAfterAdjustMoney
(
BigDecimalUtils
.
safeAdd
(
info
.
getSurMoney
(),
money
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
info
.
getErrorInfo
(),
info
));
}
else
{
info
.
setAdjustMoney
(
info
.
getSurMoney
());
info
.
setAdjustMoney
(
info
.
getSurMoney
()
.
negate
()
);
info
.
setAfterAdjustMoney
(
BigDecimal
.
ZERO
);
money
=
info
.
getSurMoney
().
add
(
money
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
info
.
getErrorInfo
(),
info
));
...
...
@@ -387,7 +387,7 @@ public class EkpSalaryInfoServiceImpl extends ServiceImpl<EkpSalaryInfoMapper, E
for
(
ClaimRebackInfotVO
subInfo
:
infoList
)
{
//分批去减去金额
if
(
subInfo
.
getSurMoney
().
add
(
money
).
compareTo
(
BigDecimal
.
ZERO
)
>=
0
)
{
subInfo
.
setAdjustMoney
(
money
);
subInfo
.
setAdjustMoney
(
money
.
negate
()
);
subInfo
.
setAfterAdjustMoney
(
BigDecimalUtils
.
safeAdd
(
subInfo
.
getSurMoney
(),
money
));
money
=
BigDecimal
.
ZERO
;
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
subInfo
.
getErrorInfo
(),
subInfo
));
...
...
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