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
eced1a27
Commit
eced1a27
authored
Jun 29, 2021
by
zlr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
右侧搜索
parent
e5708f82
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
0 deletions
+35
-0
portal-server/src/main/java/com/zq/portal/controller/admin/EtStatsAdminController.java
+6
-0
portal-server/src/main/java/com/zq/portal/dao/EtStatsDao.java
+10
-0
portal-server/src/main/java/com/zq/portal/service/EtStatsService.java
+10
-0
portal-server/src/main/resources/mapper/EtStatsMapper.xml
+9
-0
No files found.
portal-server/src/main/java/com/zq/portal/controller/admin/EtStatsAdminController.java
View file @
eced1a27
...
@@ -43,4 +43,10 @@ public class EtStatsAdminController {
...
@@ -43,4 +43,10 @@ public class EtStatsAdminController {
return
ResultVo
.
success
(
etStatsService
.
getCacheAgencyPercentageStats
(
vo
));
return
ResultVo
.
success
(
etStatsService
.
getCacheAgencyPercentageStats
(
vo
));
}
}
@ApiOperation
(
"儿童搜索"
)
@PostMapping
(
value
=
"/agencyChildSearch"
)
public
ResultVo
agencyChildSearch
(
@RequestBody
StatsReqVo
vo
)
{
return
ResultVo
.
success
(
etStatsService
.
agencyChildSearch
(
vo
.
getKeyword
()));
}
}
}
portal-server/src/main/java/com/zq/portal/dao/EtStatsDao.java
View file @
eced1a27
...
@@ -4,9 +4,11 @@ import com.baomidou.dynamic.datasource.annotation.DS;
...
@@ -4,9 +4,11 @@ import com.baomidou.dynamic.datasource.annotation.DS;
import
com.zq.common.constant.DBName
;
import
com.zq.common.constant.DBName
;
import
com.zq.portal.vo.StatsReqVo
;
import
com.zq.portal.vo.StatsReqVo
;
import
com.zq.portal.vo.StatsVo
;
import
com.zq.portal.vo.StatsVo
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
@DS
(
DBName
.
GXET
)
@DS
(
DBName
.
GXET
)
@Repository
@Repository
...
@@ -51,4 +53,12 @@ public interface EtStatsDao {
...
@@ -51,4 +53,12 @@ public interface EtStatsDao {
* @return
* @return
*/
*/
StatsVo
getAreaOrphanStats
(
StatsReqVo
vo
);
StatsVo
getAreaOrphanStats
(
StatsReqVo
vo
);
/**
* 搜索
*
* @param keyword
* @return
*/
List
<
Map
<
String
,
Object
>>
search
(
@Param
(
"keyword"
)
String
keyword
);
}
}
portal-server/src/main/java/com/zq/portal/service/EtStatsService.java
View file @
eced1a27
...
@@ -201,4 +201,14 @@ public class EtStatsService {
...
@@ -201,4 +201,14 @@ public class EtStatsService {
return
agencyUnderChildStats
;
return
agencyUnderChildStats
;
}
}
/**
* 搜索
*
* @param keyword
* @return
*/
public
Object
agencyChildSearch
(
String
keyword
)
{
return
etStatsDao
.
search
(
keyword
);
}
}
}
portal-server/src/main/resources/mapper/EtStatsMapper.xml
View file @
eced1a27
...
@@ -81,4 +81,13 @@
...
@@ -81,4 +81,13 @@
</if>
</if>
</select>
</select>
<select
id=
"search"
resultType=
"java.util.Map"
>
SELECT AXCP0002 'name' ,AXCP0005 'idCard', AJEF0124 'fullAddress'
FROM
jep01
WHERE
AXCP0002 = #{keyword}
OR AXCP0005 = #{keyword}
</select>
</mapper>
</mapper>
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