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
717a3a4b
Commit
717a3a4b
authored
Apr 07, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预计发佣报错
parent
26c736b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+11
-7
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
717a3a4b
...
...
@@ -1244,18 +1244,22 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
if
(
expectedFortune
.
getPaidAmount
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
throw
new
BusinessException
(
ResultCode
.
FAIL
.
getCode
(),
"当前应付款已有出账金额,不能修改"
);
}
CurrencyEnum
currencyEnum
;
try
{
currencyEnum
=
CurrencyEnum
.
valueOf
(
request
.
getCurrency
());
}
catch
(
IllegalArgumentException
e
)
{
throw
new
BusinessException
(
ResultCode
.
FAIL
.
getCode
(),
"币种错误:"
+
request
.
getCurrency
());
}
ExpectedFortune
updateExpectedFortune
=
new
ExpectedFortune
();
BeanUtils
.
copyProperties
(
request
,
updateExpectedFortune
);
updateExpectedFortune
.
setId
(
expectedFortune
.
getId
());
// 默认结算汇率
if
(
updateExpectedFortune
.
getDefaultExchangeRate
()
==
null
)
{
updateExpectedFortune
.
setDefaultExchangeRate
(
queryExchangeRateByFeign
(
updateExpectedFortune
.
getPolicyCurrency
(),
updateExpectedFortune
.
getCurrency
()
));
}
updateExpectedFortune
.
setDefaultExchangeRate
(
queryExchangeRateByFeign
(
expectedFortune
.
getPolicyCurrency
(),
updateExpectedFortune
.
getCurrency
()
));
// 计算港币金额
updateExpectedFortune
.
setHkdAmount
(
updateExpectedFortune
.
getAmount
().
multiply
(
updateExpectedFortune
.
getDefaultExchangeRate
()));
...
...
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