Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
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
civil
civil-bigdata
Commits
6f2057cd
Commit
6f2057cd
authored
Dec 14, 2021
by
wqc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改社会残疾统计sql
parent
4145e704
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletions
+26
-1
portal-server/src/main/java/com/zq/portal/dao/CjStatsDao.java
+9
-1
portal-server/src/main/java/com/zq/portal/service/CjStatsService.java
+1
-0
portal-server/src/main/resources/mapper/CjStatsMapper.xml
+16
-0
No files found.
portal-server/src/main/java/com/zq/portal/dao/CjStatsDao.java
View file @
6f2057cd
...
...
@@ -39,7 +39,7 @@ public interface CjStatsDao {
List
<
StatsVo
>
getYearSevereDisabledStats
(
StatsReqVo
vo
);
/**
* 获取区域下的残疾人统计
* 获取区域下的
重度
残疾人统计
*
* @param vo
* @return
...
...
@@ -47,6 +47,14 @@ public interface CjStatsDao {
StatsVo
getSeverePeopleNumStats
(
StatsReqVo
vo
);
/**
* 获取区域下的困难残疾人统计
*
* @param vo
* @return
*/
StatsVo
getDifficultPeopleNumStats
(
StatsReqVo
vo
);
/**
* 获取区域发放统计
*
* @return
...
...
portal-server/src/main/java/com/zq/portal/service/CjStatsService.java
View file @
6f2057cd
...
...
@@ -236,6 +236,7 @@ public class CjStatsService {
data
.
put
(
"areaName"
,
area
.
getName
());
data
.
put
(
"areaCode"
,
severeAreaIssueStat
.
getCode
());
data
.
put
(
"severePeopleNum"
,
cjStatsDao
.
getSeverePeopleNumStats
(
vo
).
getNum
());
data
.
put
(
"difficultPeopleNum"
,
cjStatsDao
.
getDifficultPeopleNumStats
(
vo
).
getNum
());
data
.
put
(
"issueNum"
,
severeAreaIssueStat
.
getNum
());
data
.
put
(
"issueAmount"
,
severeAreaIssueStat
.
getAmount
());
areaPeopleNumList
.
add
(
data
);
...
...
portal-server/src/main/resources/mapper/CjStatsMapper.xml
View file @
6f2057cd
...
...
@@ -65,6 +65,22 @@
</if>
</select>
<select
id=
"getDifficultPeopleNumStats"
resultType=
"com.zq.portal.vo.StatsVo"
>
SELECT
COUNT( 1 ) 'num'
FROM
`cjrjz_proposer`
WHERE
ENSURE_LEVEL_ID IS NOT NULL
AND ENSURE_LEVEL_ID IN (3,4)
<if
test=
"subAreaCode != null and subAreaCode != ''"
>
AND CARD_CODE LIKE CONCAT(#{subAreaCode}, '%')
</if>
<if
test=
"year != null"
>
AND LEFT(CREATE_DATE, 4) = #{year}
</if>
</select>
<select
id=
"getAreaIssueStats"
resultType=
"com.zq.portal.vo.StatsVo"
>
SELECT LEFT(UNIT_ID, #{size}) 'code', APPLY_TYPE_ID 'type', GRANT_YEAR 'year', COUNT_PEOPLE 'num', SUM_MONEY
'amount'
...
...
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