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
91a4c6c8
Commit
91a4c6c8
authored
Jan 23, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新单跟进v2
parent
12cf4403
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
yd-csf-service/src/main/resources/mappers/ExpectedFortuneMapper.xml
+4
-4
No files found.
yd-csf-service/src/main/resources/mappers/ExpectedFortuneMapper.xml
View file @
91a4c6c8
...
@@ -68,8 +68,8 @@
...
@@ -68,8 +68,8 @@
else 0
else 0
end as paidRatio,
end as paidRatio,
case when ifnull(sum(ef.hkd_amount), 0) > 0
case when ifnull(sum(ef.hkd_amount), 0) > 0
then round(
ifnull(sum(ef.unpaid_amount), 0) / ifnull(sum(ef.hkd_amount), 0) * 100
, 2)
then round(
100 - (ifnull(sum(ef.paid_amount), 0) / ifnull(sum(ef.hkd_amount), 0) * 100)
, 2)
else 0
else
10
0
end as unpaidRatio,
end as unpaidRatio,
MAX(first_broker.broker_name) as broker,
MAX(first_broker.broker_name) as broker,
DATE_ADD(DATE_ADD(MAX(p.effective_date), INTERVAL 2 MONTH), INTERVAL (ef.fortune_period - 1) YEAR) as payoutDate
DATE_ADD(DATE_ADD(MAX(p.effective_date), INTERVAL 2 MONTH), INTERVAL (ef.fortune_period - 1) YEAR) as payoutDate
...
@@ -120,8 +120,8 @@
...
@@ -120,8 +120,8 @@
else 0
else 0
end as paidRatio,
end as paidRatio,
case when ifnull(ef.hkd_amount, 0) > 0
case when ifnull(ef.hkd_amount, 0) > 0
then round(
ifnull(ef.unpaid_amount, 0) / ifnull(ef.hkd_amount, 0) * 100
, 2)
then round(
100 - (ifnull(ef.paid_amount, 0) / ifnull(ef.hkd_amount, 0) * 100)
, 2)
else 0
else
10
0
end as unpaidRatio,
end as unpaidRatio,
ef.broker as broker,
ef.broker as broker,
ef.payout_date as payoutDate
ef.payout_date as payoutDate
...
...
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