Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
55f57147
Commit
55f57147
authored
Feb 04, 2021
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加排序
parent
156caacf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+7
-6
No files found.
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
55f57147
...
...
@@ -162,16 +162,15 @@
if(pay.pay_status = 0, 2, 4) commissionPayoutStatus,
date_format(pay.pay_date, '%Y-%m-%d %H:%i:%s') payDate
from ag_acl_customer_fortune_pay pay
LEFT
join ag_acl_customer_fortune f on f.fortune_payed_id = pay.id
LEFT
JOIN ag_po_order o on o.id = f.order_id
left
join ag_acl_customer_fortune_payout_batch pb on pb.id = f.payout_batch_id
LEFT
JOIN ag_acl_practitioner pra on pay.customer_id = pra.customer_id
inner
join ag_acl_customer_fortune f on f.fortune_payed_id = pay.id
inner
JOIN ag_po_order o on o.id = f.order_id
inner
join ag_acl_customer_fortune_payout_batch pb on pb.id = f.payout_batch_id
inner
JOIN ag_acl_practitioner pra on pay.customer_id = pra.customer_id
LEFT JOIN ag_acl_insurer_branch ib on ib.id = pra.insurer_branch_id
LEFT JOIN ag_acl_insurer_branch_dept dept ON pra.dept_id = dept.id
LEFT JOIN ag_acl_practitioner_subordinate_system sub ON sub.id = pra.subordinate_system_id
left join ag_acl_practitioner_setting setting
inner join ag_acl_practitioner_setting setting on pra.id = setting.practitioner_id
left join ag_md_drop_options opt on opt.id = setting.practitioner_level
on pra.id = setting.practitioner_id
where
setting.practitioner_type_id = 28
and pay.withdraw_amount != 0
...
...
@@ -193,5 +192,6 @@
<if
test=
"item.commissionPayoutStatus != null"
>
and f.commission_payout_status = #{item.commissionPayoutStatus,jdbcType=BIGINT}
</if>
order by pb.payout_yearmonth
</select>
</mapper>
\ No newline at end of file
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