Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
cfld-know-partner
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-backend
cfld-know-partner
Commits
5202883a
Commit
5202883a
authored
Nov 02, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合伙招商api
parent
64046e02
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
PersonalStatisticsVO.java
src/main/java/com/partner/admin/VO/PersonalStatisticsVO.java
+1
-1
PartnerProjectInfoMapper.xml
src/main/resources/mapper/PartnerProjectInfoMapper.xml
+7
-7
No files found.
src/main/java/com/partner/admin/VO/PersonalStatisticsVO.java
View file @
5202883a
...
...
@@ -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
;
...
...
src/main/resources/mapper/PartnerProjectInfoMapper.xml
View file @
5202883a
...
...
@@ -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
...
...
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