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
5a139576
Commit
5a139576
authored
Apr 30, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
67f8648e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
13 deletions
+26
-13
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiCommissionExpectedController.java
+16
-13
yd-csf-service/src/main/java/com/yd/csf/service/vo/ReceivableReportVO.java
+10
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiCommissionExpectedController.java
View file @
5a139576
...
...
@@ -29,6 +29,7 @@ import io.swagger.v3.oas.annotations.Operation;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -38,6 +39,7 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.math.BigDecimal
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.Collections
;
...
...
@@ -347,7 +349,7 @@ public class ApiCommissionExpectedController {
receivableReportPage
=
commissionExpectedService
.
receivableReportPage
(
reportPage
,
allExpectedIdList
);
}
// enrichReceivableReportWithCompanyName(receivableReportPage);
receivableReportPage
=
convert
ProductName
(
receivableReportPage
);
receivableReportPage
=
convert
ReceivableReport
(
receivableReportPage
);
// 组装返回结果
ReceivableReportResponse
response
=
new
ReceivableReportResponse
();
response
.
setStatisticsVO
(
statisticsVO
);
...
...
@@ -355,18 +357,8 @@ public class ApiCommissionExpectedController {
return
Result
.
success
(
response
);
}
// /**
// * 保單持有人(中/英)/签单人/转介人名称(主)查询
// * @param policyHolder
// * @param signer
// * @param brokerName
// * @return
// */
// public List<String> getPolicyNoList(String policyHolder,String signer,String brokerName) {
//
// }
public
IPage
<
ReceivableReportVO
>
convertProductName
(
IPage
<
ReceivableReportVO
>
receivableReportPage
)
{
public
IPage
<
ReceivableReportVO
>
convertReceivableReport
(
IPage
<
ReceivableReportVO
>
receivableReportPage
)
{
if
(!
org
.
springframework
.
util
.
CollectionUtils
.
isEmpty
(
receivableReportPage
.
getRecords
()))
{
List
<
String
>
policyNoList
=
receivableReportPage
.
getRecords
().
stream
().
map
(
ReceivableReportVO:
:
getPolicyNo
).
collect
(
Collectors
.
toList
());
List
<
PolicyFollow
>
policyFollowList
=
new
ArrayList
<>();
...
...
@@ -383,6 +375,17 @@ public class ApiCommissionExpectedController {
vo
.
setProductName
(
policyFollow
.
getProductName
());
vo
.
setProductLaunchBizId
(
policyFollow
.
getProductLaunchBizId
());
}
//已入账比例(%)>= 预计入账比例(%) 待入账比例和待入账金额归零
//已入账比例(%)
BigDecimal
paidRatio
=
ObjectUtils
.
defaultIfNull
(
vo
.
getPaidRatio
(),
BigDecimal
.
ZERO
);
//预计入账比例(%)
BigDecimal
commissionRatio
=
ObjectUtils
.
defaultIfNull
(
vo
.
getCommissionRatio
(),
BigDecimal
.
ZERO
);
if
(
paidRatio
.
compareTo
(
commissionRatio
)
>=
0
)
{
//待入账金额(港币)
vo
.
setUnpaidAmount
(
BigDecimal
.
ZERO
);
//待入账比例(%)
vo
.
setUnpaidRatio
(
BigDecimal
.
ZERO
);
}
return
vo
;
}).
collect
(
Collectors
.
toList
());
receivableReportPage
.
setRecords
(
voList
);
...
...
yd-csf-service/src/main/java/com/yd/csf/service/vo/ReceivableReportVO.java
View file @
5a139576
...
...
@@ -155,4 +155,14 @@ public class ReceivableReportVO {
* 保單持有人(投保人,保单表)(英文名)
*/
private
String
policyHolderEn
;
/**
* 受保人
*/
private
String
insured
;
/**
* 受保人-英文
*/
private
String
insuredEn
;
}
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