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
08f3c893
Commit
08f3c893
authored
Jan 04, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据设备id查询视频及点位图信息
parent
76e93938
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
ConfirmAlarmMapper.java
...va/com/yeejoin/equipmanage/mapper/ConfirmAlarmMapper.java
+4
-0
ConfirmAlarmServiceImpl.java
...oin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
+2
-0
ConfirmAlarmMapper.xml
...em-equip/src/main/resources/mapper/ConfirmAlarmMapper.xml
+30
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/ConfirmAlarmMapper.java
View file @
08f3c893
...
...
@@ -5,10 +5,14 @@ import com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarm;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarmLog
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Map
;
public
interface
ConfirmAlarmMapper
extends
BaseMapper
<
EquipmentSpecificAlarm
>
{
EquipmentSpecificAlarmLog
getDetailsById
(
@Param
(
"id"
)
String
id
,
@Param
(
"equipId"
)
String
equipId
);
Map
<
String
,
Object
>
getPointInfoByEquId
(
@Param
(
"equipId"
)
String
equipId
);
int
confirmAlam
(
EquipmentSpecificAlarmLog
ent
);
EquipmentSpecificAlarmLog
getIdAndConfirmType
(
String
id
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
View file @
08f3c893
...
...
@@ -141,10 +141,12 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
Map
<
String
,
Object
>
res
=
new
HashMap
<>();
if
(
videoType
.
equals
(
type
))
{
List
<
AlamVideoVO
>
video
=
videoMapper
.
getVideoBySpeId
(
Long
.
valueOf
(
equipId
));
Map
<
String
,
Object
>
pointInfo
=
confirmAlarmMapper
.
getPointInfoByEquId
(
equipId
);
video
.
forEach
(
action
->
{
action
.
setVedioFormat
(
action
.
getVideoType
());
action
.
setUrl
(
videoService
.
getVideoUrl
(
action
.
getName
(),
action
.
getPresetPosition
(),
action
.
getUrl
(),
action
.
getCode
()));
});
res
.
put
(
"data"
,
pointInfo
);
res
.
put
(
"video"
,
video
);
return
res
;
}
...
...
amos-boot-system-equip/src/main/resources/mapper/ConfirmAlarmMapper.xml
View file @
08f3c893
...
...
@@ -227,5 +227,35 @@
ORDER BY
d.createDate desc
</select>
<select
id=
"getPointInfoByEquId"
resultType=
"java.util.Map"
>
select
spe.id equipmentSpecificId,
(
SELECT
sou.scene_id
FROM
wl_source_scene sou
WHERE
find_in_set(spe.id,sou.point_in_scene)>0
and EXISTS (SELECT distinct fi.instance_id from wl_form_instance fi where fi.instance_id = sou.source_id)
limit 1
) AS sceneId,
(
SELECT
sou.source_id
FROM
wl_source_scene sou
WHERE
find_in_set(spe.id,sou.point_in_scene)>0
and EXISTS (SELECT distinct fi.instance_id from wl_form_instance fi where fi.instance_id = sou.source_id)
limit 1
) AS sourceId
from
wl_equipment_specific as spe
<where>
spe.id = #{equipId}
</where>
</select>
</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