Commit ed9c0061 authored by suhuiguang's avatar suhuiguang

1.点位图摄像头点击绑定问题bug5331

parent eb608aea
...@@ -25,4 +25,9 @@ public class AlamVideoVO { ...@@ -25,4 +25,9 @@ public class AlamVideoVO {
private String vedioFormat; private String vedioFormat;
/**
* 是否绑定设备
*/
private Boolean isBonded = true;
} }
...@@ -1063,7 +1063,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -1063,7 +1063,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
if (BitmapEnum.video.getKey().equals(type)) { if (BitmapEnum.video.getKey().equals(type)) {
AlamVideoVO video = videoMapper.getVideoById(id); AlamVideoVO video = videoMapper.getVideoById(id);
if (!ObjectUtils.isEmpty(video)) { if (!ObjectUtils.isEmpty(video)) {
video.setUrl(videoService.getVideoUrl(video.getName().toString(), video.getPresetPosition(), video.getUrl(), video.getCode())); video.setUrl(videoService.getVideoUrl(video.getName(), video.getPresetPosition(), video.getUrl(), video.getCode()));
video.setId(id); video.setId(id);
video.setVedioFormat(vedioFormat); video.setVedioFormat(vedioFormat);
} }
......
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url = jdbc:mysql://172.16.10.215/dl_business_v3.0.1.3?useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai spring.datasource.url = jdbc:mysql://172.16.10.215:3307/dl_business_v3.0.1.3?useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=Yeejoin@2020 spring.datasource.password=Yeejoin@2020
spring.datasource.type=com.zaxxer.hikari.HikariDataSource spring.datasource.type=com.zaxxer.hikari.HikariDataSource
......
...@@ -182,13 +182,15 @@ ...@@ -182,13 +182,15 @@
where equipment_specific_id = #{id} where equipment_specific_id = #{id}
</select> </select>
<select id="getVideoById" resultType="com.yeejoin.equipmanage.common.entity.vo.AlamVideoVO"> <select id="getVideoById" resultType="com.yeejoin.equipmanage.common.entity.vo.AlamVideoVO">
SELECT v.`name`, SELECT
v.`name`,
v.`code`, v.`code`,
v.url, v.url,
v.token, v.token,
CONCAT_WS(' ', ws.full_name, v.address) AS address, CONCAT_WS(' ', ws.full_name, v.address) AS address,
v.img, v.img,
v.preset_position as presetPosition v.preset_position as presetPosition,
false as isBonded
FROM wl_video v FROM wl_video v
LEFT JOIN wl_video_source vs ON vs.video_id = v.id LEFT JOIN wl_video_source vs ON vs.video_id = v.id
LEFT JOIN wl_warehouse_structure ws ON ws.id = vs.source_id LEFT JOIN wl_warehouse_structure ws ON ws.id = vs.source_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment