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
7184cde3
Commit
7184cde3
authored
Dec 03, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
79ca31ac
26c2b187
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
portal-server/src/main/java/com/zq/portal/controller/admin/EtStatsAdminController.java
+3
-3
portal-server/src/main/java/com/zq/portal/controller/app/EtStatsController.java
+2
-2
portal-server/src/main/java/com/zq/portal/entity/VChildWelfareStats.java
+1
-1
portal-server/src/main/java/com/zq/portal/service/EtStatsService.java
+4
-2
portal-server/src/main/resources/mapper/ShjzStatsDao.xml
+1
-1
No files found.
portal-server/src/main/java/com/zq/portal/controller/admin/EtStatsAdminController.java
View file @
7184cde3
...
...
@@ -23,13 +23,13 @@ public class EtStatsAdminController {
@ApiOperation
(
"统计该区域的机构和儿童数量"
)
@PostMapping
(
value
=
"/getAgencyChildStats"
)
public
ResultVo
<
Object
>
getAgencyChildStats
(
@RequestBody
StatsReqVo
vo
)
{
return
ResultVo
.
success
(
etStatsService
.
get
Cache
AgencyChildStats
(
vo
));
return
ResultVo
.
success
(
etStatsService
.
getAgencyChildStats
(
vo
));
}
@ApiOperation
(
"统计该区域的机构和儿童数量统计列表"
)
@PostMapping
(
value
=
"/getAgencyChildStatsList"
)
public
ResultVo
getAgencyChildStatsList
(
@RequestBody
StatsReqVo
vo
)
{
return
ResultVo
.
success
(
etStatsService
.
get
Cache
AgencyChildStatsList
(
vo
));
return
ResultVo
.
success
(
etStatsService
.
getAgencyChildStatsList
(
vo
));
}
@ApiOperation
(
"获取福利院下的儿童统计"
)
...
...
@@ -41,7 +41,7 @@ public class EtStatsAdminController {
@ApiOperation
(
"获取区域机构占比"
)
@PostMapping
(
value
=
"/getAgencyPercentageStats"
)
public
ResultVo
<
Object
>
getAgencyPercentageStats
(
@RequestBody
StatsReqVo
vo
)
{
return
ResultVo
.
success
(
etStatsService
.
get
Cache
AgencyPercentageStats
(
vo
));
return
ResultVo
.
success
(
etStatsService
.
getAgencyPercentageStats
(
vo
));
}
@ApiOperation
(
"儿童搜索"
)
...
...
portal-server/src/main/java/com/zq/portal/controller/app/EtStatsController.java
View file @
7184cde3
...
...
@@ -22,13 +22,13 @@ public class EtStatsController {
@ApiOperation
(
"统计该区域的机构和儿童数量"
)
@PostMapping
(
value
=
"/getAgencyChildStats"
)
public
ResultVo
<
Object
>
getAgencyChildStats
(
@RequestBody
StatsReqVo
vo
)
{
return
ResultVo
.
success
(
etStatsService
.
get
Cache
AgencyChildStats
(
vo
));
return
ResultVo
.
success
(
etStatsService
.
getAgencyChildStats
(
vo
));
}
@ApiOperation
(
"儿童福利机构统计列表"
)
@PostMapping
(
value
=
"/getAgencyChildStatsList"
)
public
ResultVo
getAgencyChildStatsList
(
@RequestBody
StatsReqVo
vo
)
{
return
ResultVo
.
success
(
etStatsService
.
get
Cache
AgencyChildStatsList
(
vo
));
return
ResultVo
.
success
(
etStatsService
.
getAgencyChildStatsList
(
vo
));
}
@ApiOperation
(
"获取福利院下的儿童统计"
)
...
...
portal-server/src/main/java/com/zq/portal/entity/VChildWelfareStats.java
View file @
7184cde3
...
...
@@ -21,7 +21,7 @@ import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"v_child_welfare
_stats
"
)
@TableName
(
value
=
"v_child_welfare"
)
public
class
VChildWelfareStats
{
/**
...
...
portal-server/src/main/java/com/zq/portal/service/EtStatsService.java
View file @
7184cde3
...
...
@@ -54,7 +54,9 @@ public class EtStatsService {
vo
.
setSubAreaCode
(
systemArea
.
subAreaCode
());
vo
.
setSize
(
vo
.
getSubAreaCode
().
length
());
VChildWelfareStats
build
=
VChildWelfareStats
.
builder
()
return
vChildWelfareStatsDao
.
selectOne
(
Wrappers
.
lambdaQuery
(
VChildWelfareStats
.
builder
().
areaCode
(
systemArea
.
getCode
()).
build
()));
/*VChildWelfareStats build = VChildWelfareStats.builder()
.areaCode(systemArea.getCode())
.areaName(systemArea.getName())
.year(vo.getYear())
...
...
@@ -80,7 +82,7 @@ public class EtStatsService {
vChildWelfareStatsDao.updateById(build);
}
return
build
;
return build;
*/
}
public
Object
getCacheAgencyChildStatsList
(
StatsReqVo
vo
)
{
...
...
portal-server/src/main/resources/mapper/ShjzStatsDao.xml
View file @
7184cde3
...
...
@@ -191,7 +191,7 @@
LEFT ( a.area_code, #{size} ) 'code',
a.type 'type',
SUM(a.people_num) 'num'
FROM
2021_city_coutry_all
a
FROM
city_coutry_2021
a
WHERE
CHAR_LENGTH (LEFT ( a.area_code, #{size} )) = #{size}
<if
test=
"subAreaCode != null and subAreaCode != ''"
>
...
...
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