Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
8f42cb1c
Commit
8f42cb1c
authored
Sep 05, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 燃气用户列表 大屏地图 labelsLayer 标注的方式 分页查询 居民用户
parent
3a377098
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
0 deletions
+48
-0
TDetectorUserController.java
...ong/web/controller/supervise/TDetectorUserController.java
+12
-0
ITDetectorUserService.java
...java/com/zehong/system/service/ITDetectorUserService.java
+8
-0
TDetectorUserServiceImpl.java
.../zehong/system/service/impl/TDetectorUserServiceImpl.java
+27
-0
TDetectorUserMapper.xml
.../src/main/resources/mapper/system/TDetectorUserMapper.xml
+1
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervise/TDetectorUserController.java
View file @
8f42cb1c
...
@@ -137,6 +137,18 @@ public class TDetectorUserController extends BaseController
...
@@ -137,6 +137,18 @@ public class TDetectorUserController extends BaseController
}
}
/**
* 获取探测器用户列表 大屏地图 labelsLayer 标注的方式 分页查询 居民用户
* @param tDetectorUser t
* @return r
*/
@GetMapping
(
"/pageQueryLabelsLayerMarksDUser"
)
public
TableDataInfo
pageQueryLabelsLayerMarksDUser
(
TDetectorUser
tDetectorUser
)
{
startPage
();
List
<
Map
<
String
,
Object
>>
maps
=
tDetectorUserService
.
pageQueryLabelsLayerMarksDUser
(
tDetectorUser
);
return
getDataTable
(
maps
);
}
/**
/**
* 获取探测器用户列表 大屏地图 labelsLayer 标注的方式
* 获取探测器用户列表 大屏地图 labelsLayer 标注的方式
* @return ajaxResult
* @return ajaxResult
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/ITDetectorUserService.java
View file @
8f42cb1c
...
@@ -48,6 +48,14 @@ public interface ITDetectorUserService
...
@@ -48,6 +48,14 @@ public interface ITDetectorUserService
*/
*/
Map
<
Object
,
List
<
Map
<
String
,
Object
>>>
labelsLayerMarksDUserVillageSafDevInfoMap
(
TDetectorUser
tDetectorUser
);
Map
<
Object
,
List
<
Map
<
String
,
Object
>>>
labelsLayerMarksDUserVillageSafDevInfoMap
(
TDetectorUser
tDetectorUser
);
/**
* 获取探测器用户列表 大屏地图 labelsLayer 标注的方式 分页查询 居民用户
* @param tDetectorUser t
* @return r
*/
List
<
Map
<
String
,
Object
>>
pageQueryLabelsLayerMarksDUser
(
TDetectorUser
tDetectorUser
);
/**
/**
* 查询探测器用户列表
* 查询探测器用户列表
*
*
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TDetectorUserServiceImpl.java
View file @
8f42cb1c
...
@@ -162,6 +162,32 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -162,6 +162,32 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
}
}
/**
* 获取探测器用户列表 大屏地图 labelsLayer 标注的方式 分页查询 居民用户
* @param tDetectorUser t
* @return r
*/
@Override
public
List
<
Map
<
String
,
Object
>>
pageQueryLabelsLayerMarksDUser
(
TDetectorUser
tDetectorUser
)
{
if
(
tDetectorUser
.
getVillageId
()
==
null
)
{
return
new
ArrayList
<>();
}
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
tDetectorUserVillageSafetyDeviceInfoVos
=
tDetectorUserMapper
.
queryDuserVilSafDevInfo
(
tDetectorUser
);
List
<
Map
<
String
,
Object
>>
maps
=
residentsUserInit
(
tDetectorUserVillageSafetyDeviceInfoVos
);
if
(
maps
.
size
()
>
0
)
{
Object
userMapList
=
maps
.
get
(
0
).
get
(
"userMapList"
);
if
(
userMapList
!=
null
)
{
return
(
List
<
Map
<
String
,
Object
>>)
userMapList
;
}
}
return
new
ArrayList
<>();
}
/**
/**
* 查询探测器用户列表 地图使用 labelsLayerMarks 标注的方式
* 查询探测器用户列表 地图使用 labelsLayerMarks 标注的方式
* @param tDetectorUser tDetectorUser
* @param tDetectorUser tDetectorUser
...
@@ -353,6 +379,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -353,6 +379,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
// 过滤掉 没有 安全装置的
// 过滤掉 没有 安全装置的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect4
=
userList
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
!=
null
).
collect
(
Collectors
.
toList
());
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect4
=
userList
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
!=
null
).
collect
(
Collectors
.
toList
());
// 按照 安全装置 分组
// 按照 安全装置 分组
Map
<
Long
,
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>>
collect3
=
collect4
.
stream
().
collect
(
Collectors
.
groupingBy
(
TDetectorUserVillageSafetyDeviceInfoVo:
:
getGasUserSafetyDeviceId
));
Map
<
Long
,
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>>
collect3
=
collect4
.
stream
().
collect
(
Collectors
.
groupingBy
(
TDetectorUserVillageSafetyDeviceInfoVo:
:
getGasUserSafetyDeviceId
));
...
...
zh-baseversion-system/src/main/resources/mapper/system/TDetectorUserMapper.xml
View file @
8f42cb1c
...
@@ -322,6 +322,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -322,6 +322,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN t_county_level_region region ON region.f_id = userVillage.f_region
LEFT JOIN t_county_level_region region ON region.f_id = userVillage.f_region
<where>
(safetyDeviceInfo.is_del = '0' or safetyDeviceInfo.is_del is null)
<where>
(safetyDeviceInfo.is_del = '0' or safetyDeviceInfo.is_del is null)
<if
test=
"userId != null and userId != ''"
>
and dUser.user_id = #{userId}
</if>
<if
test=
"userId != null and userId != ''"
>
and dUser.user_id = #{userId}
</if>
<if
test=
"villageId != null and villageId != ''"
>
and dUser.f_village_id = #{villageId}
</if>
</where>
</where>
</select>
</select>
...
...
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