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
1f3877e1
Commit
1f3877e1
authored
Mar 09, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预计发佣查询结算币种10
parent
be769707
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+4
-6
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
1f3877e1
...
...
@@ -380,10 +380,12 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
JSONObject
announcementRatio
=
announcementRatioList
.
get
(
0
,
JSONObject
.
class
);
String
currency
=
announcementRatio
.
getStr
(
"currency"
);
log
.
info
(
"
默认
结算币种:{}"
,
currency
);
log
.
info
(
"结算币种:{}"
,
currency
);
BigDecimal
exchangeRate
=
queryExchangeRateByFeign
(
queryPolicyAndBrokerDto
.
getCurrency
(),
currency
);
log
.
info
(
"结算汇率:{}"
,
exchangeRate
);
for
(
ExpectedFortune
expectedFortune
:
expectedFortuneList
)
{
//设置结算货币
expectedFortune
.
setCurrency
(
currency
);
...
...
@@ -392,11 +394,7 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
//设置港币金额(标准发佣金额 * 默认结算汇率)
expectedFortune
.
setHkdAmount
(
expectedFortune
.
getAmount
().
multiply
(
exchangeRate
));
iExpectedFortuneService
.
lambdaUpdate
()
.
set
(
ExpectedFortune:
:
getCurrency
,
currency
)
.
set
(
ExpectedFortune:
:
getDefaultExchangeRate
,
exchangeRate
)
.
set
(
ExpectedFortune:
:
getHkdAmount
,
expectedFortune
.
getHkdAmount
())
.
eq
(
ExpectedFortune:
:
getId
,
expectedFortune
.
getId
());
iExpectedFortuneService
.
updateById
(
expectedFortune
);
}
}
else
{
log
.
error
(
"查询结算币种失败,未查询到默认结算汇率->入参request:{},出参result:{}"
,
JSON
.
toJSONString
(
request
),
JSON
.
toJSONString
(
result
));
...
...
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