Commit c1fb4bad authored by yaobaizheng's avatar yaobaizheng

合伙招商api

parent f8974f02
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
sum(project_examine_count) project_examine_count,sum(project_push_count) project_push_count sum(project_examine_count) project_examine_count,sum(project_push_count) project_push_count
from ( from (
select count(1) project_all_count,0 project_investment_total, 0 project_examine_count,0 project_push_count from partner_project_info select count(1) project_all_count,0 project_investment_total, 0 project_examine_count,0 project_push_count from partner_project_info
where partner_id = #{userId} where partner_id = #{userId} and status in (1,2,4,5,6,7,8,9,10,11,12,13,14,15)
union all union all
select 0 project_all_count,sum(project_investment_total) project_investment_total, 0 project_examine_count,0 project_push_count from partner_project_info where partner_id = #{userId} select 0 project_all_count,sum(project_investment_total) project_investment_total, 0 project_examine_count,0 project_push_count from partner_project_info where partner_id = #{userId}
union all union all
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
select sum(project_all_count) project_all_count,ROUND(sum(project_investment_total),1) project_investment_total, select sum(project_all_count) project_all_count,ROUND(sum(project_investment_total),1) project_investment_total,
ROUND(sum(project_investment_regular),1) project_investment_regular,sum(partner_count) partner_count ROUND(sum(project_investment_regular),1) project_investment_regular,sum(partner_count) partner_count
from ( from (
select count(1) project_all_count,0 project_investment_total, 0 project_investment_regular,0 partner_count from partner_project_info select count(1) project_all_count,0 project_investment_total, 0 project_investment_regular,0 partner_count from partner_project_info where status in (1,2,4,5,6,7,8,9,10,11,12,13,14,15)
union all union all
select 0 project_all_count,sum(project_investment_total) project_investment_total, 0 project_investment_regular,0 partner_count from partner_project_info select 0 project_all_count,sum(project_investment_total) project_investment_total, 0 project_investment_regular,0 partner_count from partner_project_info
union all union all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment