Commit 5202883a authored by yaobaizheng's avatar yaobaizheng

合伙招商api

parent 64046e02
......@@ -16,7 +16,7 @@ public class PersonalStatisticsVO implements Serializable {
@ApiModelProperty(value = "总项目量")
private Long projectAllCount = 0L;
@ApiModelProperty(value = "投资额")
@ApiModelProperty(value = "固定资产投资额")
private BigDecimal projectInvestmentTotal = new BigDecimal("0.0");
@ApiModelProperty(value = "审核中的项目")
private Long projectExamineCount = 0L;
......
......@@ -47,25 +47,25 @@
<select id= "getPersonalStatistics" parameterType="Integer" resultType="com.partner.admin.VO.PersonalStatisticsVO">
-- 统计数-总项目量+总投资额+审核中的项目+推进中的项目
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,FLOOR(sum(project_investment_regular),1) project_investment_total,
sum(project_examine_count) project_examine_count,sum(project_push_count) project_push_count
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_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)
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_regular) project_investment_regular, 0 project_examine_count,0 project_push_count from partner_project_info where partner_id = #{userId}
union all
select 0 project_all_count,0 project_investment_total, count(1) project_examine_count,0 project_push_count from partner_project_info
select 0 project_all_count,0 project_investment_regular, count(1) project_examine_count,0 project_push_count from partner_project_info
where status in (1,2,4,5,6,7,8) and partner_id = #{userId}
union all
select 0 project_all_count,0 project_investment_total, 0 project_examine_count, count(1) project_push_count from partner_project_info
select 0 project_all_count,0 project_investment_regular, 0 project_examine_count, count(1) project_push_count from partner_project_info
where status in (9,10,11,12,13,14) and partner_id = #{userId}
) A
</select>
<select id= "getPlatformProjectStatistics" resultType="com.partner.admin.VO.PlatformProjectStatisticsVO">
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
select sum(project_all_count) project_all_count,FLOOR(sum(project_investment_total),1) project_investment_total,
FLOOR(sum(project_investment_regular),1) project_investment_regular,sum(partner_count) partner_count
from (
-- 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
......
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