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
2be3e53d
Commit
2be3e53d
authored
Jan 09, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端对接问题修复98
parent
856a8ff9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+3
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
+6
-7
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
+3
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+1
-1
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
2be3e53d
...
...
@@ -511,6 +511,9 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
if
(
Objects
.
isNull
(
expectedFortuneDto
.
getAmount
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"预计出账金额不能为空"
);
}
if
(
Objects
.
isNull
(
expectedFortuneDto
.
getCurrency
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"预计出账币种不能为空"
);
}
}
}
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
View file @
2be3e53d
...
...
@@ -537,17 +537,14 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
List
<
ExpectedFortune
>
expectedFortuneList
=
iExpectedFortuneService
.
lambdaQuery
()
.
in
(
ExpectedFortune:
:
getPolicyNo
,
policyNoSet
)
.
list
();
// 1.2 根据保单号和期数筛选符合的预计发佣记录
// 1.2 根据期数筛选符合的预计发佣记录
Set
<
Integer
>
commissionPeriodSet
=
commissions
.
stream
().
map
(
Commission:
:
getCommissionPeriod
).
collect
(
Collectors
.
toSet
());
List
<
ExpectedFortune
>
filteredExpectedFortuneList1
=
new
ArrayList
<>();
for
(
Commission
commission
:
commissions
)
{
String
policyNo
=
commission
.
getPolicyNo
();
Integer
commissionPeriod
=
commission
.
getCommissionPeriod
();
for
(
ExpectedFortune
expectedFortune
:
expectedFortuneList
)
{
if
(
expectedFortune
.
getPolicyNo
().
equals
(
policyNo
)
&&
expectedFortune
.
getFortunePeriod
().
equals
(
commissionPeriod
))
{
if
(
commissionPeriodSet
.
contains
(
expectedFortune
.
getFortunePeriod
()
))
{
filteredExpectedFortuneList1
.
add
(
expectedFortune
);
}
}
}
if
(
CollectionUtils
.
isEmpty
(
filteredExpectedFortuneList1
))
{
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"未找到保单对应的预计发佣记录,请先创建预计发佣记录"
);
}
...
...
@@ -629,7 +626,8 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
Map
<
String
,
Commission
>
commissionByPolicyPeriod
=
commissionList
.
stream
()
.
collect
(
Collectors
.
toMap
(
commission
->
buildPolicyPeriodKey
(
commission
.
getPolicyNo
(),
commission
.
getCommissionPeriod
()),
Function
.
identity
()
Function
.
identity
(),
(
oldValue
,
newValue
)
->
newValue
// 遇到重复时使用新值
));
Date
now
=
new
Date
();
...
...
@@ -639,6 +637,7 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
BeanUtils
.
copyProperties
(
expectedFortune
,
fortune
);
fortune
.
setFortuneBizId
(
RandomStringGenerator
.
generateBizId16
(
CommonEnum
.
UID_TYPE_FORTUNE
.
getCode
()));
fortune
.
setId
(
null
);
fortune
.
setFortuneBizType
(
"R"
);
fortune
.
setAmount
(
expectedFortune
.
getAmount
());
fortune
.
setCurrentPaymentAmount
(
expectedFortune
.
getAmount
());
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
View file @
2be3e53d
...
...
@@ -67,6 +67,9 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
return
queryWrapper
;
}
List
<
String
>
statusList
=
fortuneAccountQueryRequest
.
getStatusList
();
if
(
CollectionUtils
.
isEmpty
(
statusList
))
{
statusList
=
Collections
.
singletonList
(
"6"
);
}
List
<
String
>
brokerBizIdList
=
fortuneAccountQueryRequest
.
getBrokerBizIdList
();
List
<
String
>
teamBizIdList
=
fortuneAccountQueryRequest
.
getTeamBizIdList
();
queryWrapper
.
in
(
CollectionUtils
.
isNotEmpty
(
brokerBizIdList
),
"broker_biz_id"
,
brokerBizIdList
);
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
2be3e53d
...
...
@@ -77,7 +77,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
String
reconciliationYearMonth
=
fortuneQueryRequest
.
getReconciliationYearMonth
();
List
<
String
>
statusList
=
fortuneQueryRequest
.
getStatusList
();
if
(
CollectionUtils
.
isEmpty
(
statusList
))
{
statusList
=
Collections
.
singletonList
(
FortuneStatusEnum
.
C
HECKE
D
.
getItemValue
());
statusList
=
Collections
.
singletonList
(
FortuneStatusEnum
.
C
AN_SEN
D
.
getItemValue
());
}
String
policyNo
=
fortuneQueryRequest
.
getPolicyNo
();
List
<
String
>
insuranceCompanyBizIdList
=
fortuneQueryRequest
.
getInsuranceCompanyBizIdList
();
...
...
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