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
d1816a50
Commit
d1816a50
authored
Mar 10, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-入账金额
parent
c278d1d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+13
-1
yd-csf-service/src/main/resources/mappers/FortuneMapper.xml
+1
-2
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
d1816a50
...
...
@@ -641,7 +641,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
if
(
fortuneStatistics
.
getAvailableOutAmount
()
==
null
)
{
fortuneStatistics
.
setAvailableOutAmount
(
BigDecimal
.
ZERO
);
}
// 计算总保费
// 计算总保费
、入账金额
if
(
CollectionUtils
.
isNotEmpty
(
fortuneIdList
))
{
List
<
Fortune
>
fortuneList
=
this
.
listByIds
(
fortuneIdList
);
...
...
@@ -661,6 +661,18 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
}
fortuneStatistics
.
setTotalPremium
(
totalPremium
);
}
// 查询总入账金额
List
<
Commission
>
commissions
=
commissionService
.
lambdaQuery
()
.
in
(
Commission:
:
getPolicyNo
,
policyNoSet
)
.
select
(
Commission:
:
getHkdAmount
)
.
list
();
BigDecimal
totalInAmount
=
BigDecimal
.
ZERO
;
if
(
CollectionUtils
.
isNotEmpty
(
commissions
))
{
for
(
Commission
commission
:
commissions
)
{
totalInAmount
=
totalInAmount
.
add
(
commission
.
getHkdAmount
());
}
fortuneStatistics
.
setTotalInAmount
(
totalInAmount
);
}
}
return
fortuneStatistics
;
...
...
yd-csf-service/src/main/resources/mappers/FortuneMapper.xml
View file @
d1816a50
...
...
@@ -70,8 +70,7 @@
from expected_fortune where status = '0' and policy_no = f.policy_no
),0) AS pendingOutAmount,
SUM(CASE WHEN f.status in ('6','1') THEN f.current_payment_hkd_amount ELSE 0 END) AS availableOutAmount,
COUNT(DISTINCT f.policy_no) AS totalPolicyCount,
MAX(ce.expected_amount) AS totalInAmount
COUNT(DISTINCT f.policy_no) AS totalPolicyCount
FROM fortune f
LEFT JOIN commission_expected ce ON f.commission_expected_biz_id = ce.commission_expected_biz_id
WHERE 1 = 1
...
...
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