Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
7e157f3f
Commit
7e157f3f
authored
Oct 14, 2022
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改监盘视频列表查询返回数据结构
parent
4cbcd28c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
SupervisionVideoServiceImpl.java
...equipmanage/service/impl/SupervisionVideoServiceImpl.java
+2
-16
SupervisionVideoMapper.xml
...quip/src/main/resources/mapper/SupervisionVideoMapper.xml
+1
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/SupervisionVideoServiceImpl.java
View file @
7e157f3f
...
...
@@ -31,27 +31,13 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
private
IVideoService
videoService
;
@Override
public
List
<
List
<
AlamVideoVO
>>
queryVideoList
(
String
bizOrgCode
)
{
List
<
List
<
AlamVideoVO
>>
resList
=
new
ArrayList
<>();
public
List
<
AlamVideoVO
>
queryVideoList
(
String
bizOrgCode
)
{
List
<
AlamVideoVO
>
list
=
supervisionVideoMapper
.
getVideoByCompany
(
bizOrgCode
);
list
.
forEach
(
action
->
{
action
.
setVedioFormat
(
vedioFormat
);
action
.
setUrl
(
videoService
.
getVideoUrl
(
action
.
getName
(),
action
.
getPresetPosition
(),
action
.
getUrl
(),
action
.
getCode
()));
});
List
<
AlamVideoVO
>
mapList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
if
(
list
.
size
()
>
1
&&
((
i
+
1
)
%
2
)
-
1
!=
0
&&
i
!=
0
)
{
mapList
.
add
(
list
.
get
(
i
));
resList
.
add
(
mapList
);
mapList
=
new
ArrayList
<>();
}
else
{
mapList
.
add
(
list
.
get
(
i
));
if
(
i
==
list
.
size
()
-
1
)
{
resList
.
add
(
mapList
);
}
}
}
return
resList
;
return
list
;
}
...
...
amos-boot-system-equip/src/main/resources/mapper/SupervisionVideoMapper.xml
View file @
7e157f3f
...
...
@@ -9,8 +9,7 @@
wv.name as name,
wv.url,
wv.code,
wv.preset_position as presetPosition,
wv.name
wv.preset_position as presetPosition
from wl_supervision_video wsv left join wl_video wv on wsv.camera_id = wv.id
where wsv.biz_org_code like concat(#{bizOrgCode},'%');
</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