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
4139092d
Commit
4139092d
authored
May 18, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-增加币种77
parent
0ff081a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
+7
-12
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
View file @
4139092d
...
@@ -646,33 +646,28 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
...
@@ -646,33 +646,28 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"未找到保单对应的预计发佣记录,请先创建预计发佣记录"
);
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"未找到保单对应的预计发佣记录,请先创建预计发佣记录"
);
}
}
// 2. 根据本次发佣期数,查询是否有
已
出账的记录
// 2. 根据本次发佣期数,查询是否有
未
出账的记录
List
<
Fortune
>
fortuneList
=
fortuneService
.
lambdaQuery
()
List
<
Fortune
>
fortuneList
=
fortuneService
.
lambdaQuery
()
.
in
(
Fortune:
:
getExpectedFortuneBizId
,
filteredExpectedFortuneList1
.
stream
().
map
(
ExpectedFortune:
:
getExpectedFortuneBizId
).
collect
(
Collectors
.
toList
()))
.
in
(
Fortune:
:
getExpectedFortuneBizId
,
filteredExpectedFortuneList1
.
stream
().
map
(
ExpectedFortune:
:
getExpectedFortuneBizId
).
collect
(
Collectors
.
toList
()))
.
list
();
.
list
();
// 2.1 已出帐的保单号和期数
Set
<
String
>
fortuneSet
=
fortuneList
.
stream
()
// 2.1 校验是否有未出账的记录
.
map
(
i
->
i
.
getPolicyNo
()
+
"_"
+
i
.
getFortunePeriod
())
.
collect
(
Collectors
.
toSet
());
// 2.2 校验是否有已出账的记录
List
<
ExpectedFortune
>
filteredExpectedFortuneList2
=
new
ArrayList
<>();
List
<
ExpectedFortune
>
filteredExpectedFortuneList2
=
new
ArrayList
<>();
for
(
ExpectedFortune
expectedFortune
:
filteredExpectedFortuneList1
)
{
for
(
ExpectedFortune
expectedFortune
:
filteredExpectedFortuneList1
)
{
String
policyNo
=
expectedFortune
.
getPolicyNo
();
// 如果有已出账记录,跳过
Integer
fortunePeriod
=
expectedFortune
.
getFortunePeriod
();
if
(
FortuneStatusEnum
.
SENT
.
getItemValue
().
equals
(
expectedFortune
.
getStatus
()))
{
// 如果有已出账记录,跳过,表示此次该预计出账已出账
if
(
fortuneSet
.
contains
(
policyNo
+
"_"
+
fortunePeriod
))
{
continue
;
continue
;
}
}
filteredExpectedFortuneList2
.
add
(
expectedFortune
);
filteredExpectedFortuneList2
.
add
(
expectedFortune
);
}
}
// 2.
3
校验预计发佣记录是否有出账币种、默认结算汇率
// 2.
2
校验预计发佣记录是否有出账币种、默认结算汇率
for
(
ExpectedFortune
expectedFortune
:
filteredExpectedFortuneList2
)
{
for
(
ExpectedFortune
expectedFortune
:
filteredExpectedFortuneList2
)
{
if
(
StringUtils
.
isBlank
(
expectedFortune
.
getRuleCurrency
()))
{
if
(
StringUtils
.
isBlank
(
expectedFortune
.
getRuleCurrency
()))
{
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"预计发佣记录"
+
expectedFortune
.
getExpectedFortuneBizId
()
+
"未配置保单币种"
);
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"预计发佣记录"
+
expectedFortune
.
getExpectedFortuneBizId
()
+
"未配置保单币种"
);
}
}
}
}
// 2.
4
根据保单号、期数查询入账检核汇率
// 2.
3
根据保单号、期数查询入账检核汇率
Map
<
String
,
BigDecimal
>
exchangeRateMap
=
this
.
queryCommissionExchangeRateMap
(
policyNoSet
,
commissionPeriodSet
);
Map
<
String
,
BigDecimal
>
exchangeRateMap
=
this
.
queryCommissionExchangeRateMap
(
policyNoSet
,
commissionPeriodSet
);
// 3. 构建实际的初始发佣记录(使用入账检核汇率)
// 3. 构建实际的初始发佣记录(使用入账检核汇率)
...
...
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