Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cf62cb54
authored
Sep 19, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
对历史轨迹查询增加筛选
1 parent
745036e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/mapper/PoiFenceMapper.java
src/main/java/cn/com/glsx/admin/modules/service/PoiFenceService.java
src/main/resources/mapper/PoiFenceMapper.xml
src/main/java/cn/com/glsx/admin/modules/mapper/PoiFenceMapper.java
View file @
cf62cb5
...
...
@@ -65,5 +65,5 @@ public interface PoiFenceMapper extends CommonBaseMapper<PoiFence> {
*
* @return 历史轨迹点
*/
List
<
PoiFence
>
queryPoiTrack
();
List
<
PoiFence
>
queryPoiTrack
(
@Param
(
"userId"
)
Long
userId
);
}
\ No newline at end of file
src/main/java/cn/com/glsx/admin/modules/service/PoiFenceService.java
View file @
cf62cb5
...
...
@@ -186,7 +186,12 @@ public class PoiFenceService extends AbstractCommonService {
* @return
*/
public
List
<
PoiFenceTrackVO
>
queryPoiTrack
()
{
List
<
PoiFence
>
poiFenceList
=
poiFenceMapper
.
queryPoiTrack
();
Long
userId
=
null
;
// 非管理员设置当前用户ID
if
(!
ShieldContextHolder
.
isSuperAdmin
())
{
userId
=
ShieldContextHolder
.
getUserId
();
}
List
<
PoiFence
>
poiFenceList
=
poiFenceMapper
.
queryPoiTrack
(
userId
);
List
<
PoiFenceTrackVO
>
poiFenceTrackList
=
Lists
.
newArrayList
();
poiFenceList
.
forEach
(
poiFence
->
{
PoiFenceTrackVO
poiFenceTrackVO
=
new
PoiFenceTrackVO
();
...
...
src/main/resources/mapper/PoiFenceMapper.xml
View file @
cf62cb5
...
...
@@ -136,6 +136,9 @@
from t_poi_fence
where del_flag = 0
and enable_status = 1
<if
test=
"userId != null "
>
and created_by in (#{userId})
</if>
order by id desc
limit 3000
</select>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment