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
23cbe561
Commit
23cbe561
authored
May 06, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-增加币种13
parent
ac0ceda5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
7 deletions
+53
-7
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+1
-1
yd-csf-feign/src/main/java/com/yd/csf/feign/response/expectedfortune/ApiExpectedFortunePageResponse.java
+1
-1
yd-csf-service/src/main/java/com/yd/csf/service/service/IAgentAccumulatedFycService.java
+3
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/IExpectedFortuneService.java
+1
-1
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/AgentAccumulatedFycServiceImpl.java
+15
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
+32
-4
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
23cbe561
...
...
@@ -1011,7 +1011,7 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
// 5. 组装返回结果
ApiExpectedFortunePageResponseVO
response
=
new
ApiExpectedFortunePageResponseVO
();
response
.
setStatisticsVO
(
statisticsVO
);
response
.
setPage
(
i
Page
);
// 恢复分页数据
response
.
setPage
(
i
ExpectedFortuneService
.
getVOPage
(
iPage
)
);
// 恢复分页数据
log
.
info
(
"查询应付款管理列表完成, 耗时: {}ms, 页码: {}, 页大小: {}, 总记录数: {}"
,
System
.
currentTimeMillis
()
-
startTime
,
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/response/expectedfortune/ApiExpectedFortunePageResponse.java
View file @
23cbe561
...
...
@@ -38,7 +38,7 @@ public class ApiExpectedFortunePageResponse {
/**
* 应付款编号
*/
@Schema
(
description
=
"应付款编号"
)
@Schema
(
description
=
"应付款编号
(业务编号)
"
)
private
String
payableNo
;
/**
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/IAgentAccumulatedFycService.java
View file @
23cbe561
...
...
@@ -5,6 +5,7 @@ import com.yd.csf.service.model.AgentAccumulatedFyc;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
import
java.util.Map
;
/**
* <p>
...
...
@@ -20,6 +21,8 @@ public interface IAgentAccumulatedFycService extends IService<AgentAccumulatedFy
List
<
UserGradeDto
>
queryUserGradeList
(
List
<
String
>
userBizIdList
);
Map
<
String
,
UserGradeDto
>
queryUserGradeMap
(
List
<
String
>
userBizIdList
);
List
<
AgentAccumulatedFyc
>
queryList
(
List
<
String
>
agentIdList
);
List
<
AgentAccumulatedFyc
>
queryAll
();
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/IExpectedFortuneService.java
View file @
23cbe561
...
...
@@ -33,7 +33,7 @@ public interface IExpectedFortuneService extends IService<ExpectedFortune> {
ExpectedFortuneStatisticsVO
getStatistics
(
List
<
Long
>
expectedFortuneIds
);
IPage
<
ApiExpectedFortunePageResponse
>
getVOPage
(
IPage
<
ExpectedFortun
e
>
iPage
);
IPage
<
ApiExpectedFortunePageResponse
>
getVOPage
(
IPage
<
ApiExpectedFortunePageRespons
e
>
iPage
);
List
<
ApiExpectedFortunePageResponse
>
toVOList
(
List
<
ExpectedFortune
>
fortuneList
);
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/AgentAccumulatedFycServiceImpl.java
View file @
23cbe561
...
...
@@ -9,7 +9,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
/**
* <p>
...
...
@@ -53,4 +58,14 @@ public class AgentAccumulatedFycServiceImpl extends ServiceImpl<AgentAccumulated
return
this
.
baseMapper
.
queryUserGradeList
(
userBizIdList
);
}
@Override
public
Map
<
String
,
UserGradeDto
>
queryUserGradeMap
(
List
<
String
>
userBizIdList
)
{
if
(
CollectionUtils
.
isEmpty
(
userBizIdList
))
{
return
Collections
.
emptyMap
();
}
return
this
.
baseMapper
.
queryUserGradeList
(
userBizIdList
)
.
stream
()
.
collect
(
Collectors
.
toMap
(
UserGradeDto:
:
getClientUserBizId
,
Function
.
identity
()));
}
}
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
View file @
23cbe561
...
...
@@ -83,14 +83,42 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
}
@Override
public
IPage
<
ApiExpectedFortunePageResponse
>
getVOPage
(
IPage
<
ExpectedFortun
e
>
iPage
)
{
List
<
ExpectedFortun
e
>
expectedFortuneList
=
iPage
.
getRecords
();
public
IPage
<
ApiExpectedFortunePageResponse
>
getVOPage
(
IPage
<
ApiExpectedFortunePageRespons
e
>
iPage
)
{
List
<
ApiExpectedFortunePageRespons
e
>
expectedFortuneList
=
iPage
.
getRecords
();
Page
<
ApiExpectedFortunePageResponse
>
expectedFortuneVOPage
=
new
Page
<>(
iPage
.
getCurrent
(),
iPage
.
getSize
(),
iPage
.
getTotal
());
if
(
CollUtil
.
isEmpty
(
expectedFortuneList
))
{
return
expectedFortuneVOPage
;
}
List
<
ApiExpectedFortunePageResponse
>
expectedFortuneVOList
=
toVOList
(
expectedFortuneList
);
expectedFortuneVOPage
.
setRecords
(
expectedFortuneVOList
);
// 1. 转介人职级信息
List
<
String
>
brokerBizIds
=
expectedFortuneList
.
stream
().
map
(
ApiExpectedFortunePageResponse:
:
getBrokerBizId
).
collect
(
Collectors
.
toList
());
Map
<
String
,
UserGradeDto
>
userGradeMap
=
iAgentAccumulatedFycService
.
queryUserGradeMap
(
brokerBizIds
);
// 2. 关联查询保单信息
for
(
ApiExpectedFortunePageResponse
vo
:
expectedFortuneList
)
{
vo
.
setCurrencyName
(
"港币"
);
// String ratio = finalBrokerRatioMap.get(ef.getBrokerBizId());
// vo.setCommissionRatio(ratio);
// Policy policy = policyMap.get(vo.getPolicyNo());
// PolicyFollow follow = policyFollowMap.get(vo.getPolicyNo());
UserGradeDto
userGradeDto
=
userGradeMap
.
get
(
vo
.
getBrokerBizId
());
if
(
userGradeDto
!=
null
)
{
vo
.
setBrokerGradeName
(
userGradeDto
.
getGradeName
());
}
// if (policy != null) {
// vo.setInsuranceCompany(policy.getInsuranceCompany());
// }
// if (follow != null) {
// vo.setProductName(follow.getProductName());
// vo.setProductLaunchBizId(follow.getProductLaunchBizId());
// }
}
// expectedFortuneVOPage.setRecords(voList);
return
expectedFortuneVOPage
;
}
...
...
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