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
571d88fb
Commit
571d88fb
authored
Apr 29, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-增加币种3
parent
80847624
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+8
-8
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
+1
-1
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
571d88fb
...
...
@@ -480,12 +480,12 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
log
.
info
(
"结算汇率:{}"
,
exchangeRate
);
for
(
ExpectedFortune
expectedFortune
:
expectedFortuneList
)
{
//设置
结算货币
expectedFortune
.
setCurrency
(
currency
);
//设置默认
结算
汇率
//设置
保单币种
expectedFortune
.
set
Rule
Currency
(
currency
);
//设置默认
保单币种 -> 港币
汇率
expectedFortune
.
setDefaultExchangeRate
(
exchangeRate
);
//设置港币金额(标准发佣金额 * 默认
结算
汇率)
expectedFortune
.
setHkdAmount
(
expectedFortune
.
getAmount
().
multiply
(
exchangeRate
));
//设置港币金额(标准发佣金额 * 默认
保单币种 -> 港币
汇率)
expectedFortune
.
setHkdAmount
(
expectedFortune
.
get
Rule
Amount
().
multiply
(
exchangeRate
));
//默认值
expectedFortune
.
setPaidAmount
(
BigDecimal
.
ZERO
);
expectedFortune
.
setPaidRatio
(
BigDecimal
.
ZERO
);
...
...
@@ -859,15 +859,15 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
// 计算实际预计发佣金额 = 标准发佣金额 × decimalRatio
BigDecimal
actualAmount
=
standardAmount
.
multiply
(
decimalRatio
);
fortune
.
setAmount
(
actualAmount
);
fortune
.
set
Rule
Amount
(
actualAmount
);
}
catch
(
NumberFormatException
e
)
{
// 如果比例不是有效的数字,使用标准金额
fortune
.
setAmount
(
standardAmount
);
fortune
.
set
Rule
Amount
(
standardAmount
);
}
catch
(
Exception
e
)
{
// 其他异常处理
log
.
error
(
"计算发佣金额异常: {}"
,
brokerRatioStr
,
e
);
fortune
.
setAmount
(
standardAmount
);
fortune
.
set
Rule
Amount
(
standardAmount
);
}
fortuneList
.
add
(
fortune
);
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
View file @
571d88fb
...
...
@@ -141,7 +141,7 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
ApiExpectedFortunePageResponse
vo
=
new
ApiExpectedFortunePageResponse
();
BeanUtils
.
copyProperties
(
ef
,
vo
);
vo
.
setCurrencyName
(
CurrencyEnum
.
toLabel
(
ef
.
getCurrency
())
);
vo
.
setCurrencyName
(
"港币"
);
String
ratio
=
finalBrokerRatioMap
.
get
(
ef
.
getBrokerBizId
());
vo
.
setCommissionRatio
(
ratio
);
...
...
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