Commit f6664847 authored by yaobaizheng's avatar yaobaizheng

合伙招商api

parent ba60be07
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
select count(1) project_all_count,0 project_investment_regular, 0 project_examine_count,0 project_push_count from partner_project_info select count(1) project_all_count,0 project_investment_regular, 0 project_examine_count,0 project_push_count from partner_project_info
where partner_id = #{userId} and status in (1,2,4,5,6,7,8,9,10,11,12,13,14,15) 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(pi.fix_asset_invest_amount) project_investment_regular, 0 project_examine_count,0 project_push_count select 0 project_all_count,sum(IFNULL(pi.fix_asset_invest_amount,ppi.project_investment_regular)) project_investment_regular, 0 project_examine_count,0 project_push_count
from partner_project_info ppi from partner_project_info ppi
LEFT JOIN project_info pi ON ppi.project_id = pi.id LEFT JOIN project_info pi ON ppi.project_id = pi.id
where ppi.partner_id = #{userId} and ppi.status in (1,2,4,5,6,7,8,9,10,11,12,13,14,15) where ppi.partner_id = #{userId} and ppi.status in (1,2,4,5,6,7,8,9,10,11,12,13,14,15)
......
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