增加绑定摄像头

pull/10/head
zhaoyu 2024-01-23 18:55:14 +08:00
parent fc979979d0
commit 7cade78064
5 changed files with 27 additions and 14 deletions

View File

@ -33,6 +33,7 @@ public class MkmjGateVideServiceImpl implements MkmjGateVideoService {
* @throws Exception * @throws Exception
*/ */
public ReturnMap save(PageData pd)throws Exception{ public ReturnMap save(PageData pd)throws Exception{
pd.put("GATE_VIDEO_ID",UuidUtil.get32UUID());
mkmjGateVideoMapper.save(pd); mkmjGateVideoMapper.save(pd);
return ReturnMap.ok("保存成功"); return ReturnMap.ok("保存成功");
} }

View File

@ -64,18 +64,18 @@ spring.main.banner-mode=off
preventionxgf.api.url=http://192.168.0.31:8992/qa-prevention-xgf/ preventionxgf.api.url=http://192.168.0.31:8992/qa-prevention-xgf/
qa-regulatory-gwj.api.url=http://192.168.0.31:8992/qa-regulatory-gwj/ qa-regulatory-gwj.api.url=http://192.168.0.31:8992/qa-regulatory-gwj/
#????? #?????
smb.host=39.103.224.166 smb.host=192.168.192.201
smb.port=22 smb.port=22
smb.user=root smb.user=root
smb.password=Zcloud@zcloud88888 smb.password=SJSKAQHBGLXT@20220311
smb.basePath=/mnt/qgfile/file/ smb.basePath=/mnt/qask/file/
#Mq\u914D\u7F6E #Mq\u914D\u7F6E
rocketmq.consumer.group2=edu-admin-edit rocketmq.consumer.group2=edu-admin-edit
rocketmq.consumer.group1=edu-admin-add rocketmq.consumer.group1=edu-admin-add
#rocketmq.name-server=10.0.140.141:9876 #rocketmq.name-server=10.0.140.141:9876
#rocketmq.name-server=192.168.0.70:9876 #rocketmq.name-server=192.168.0.70:9876
rocketmq.name-server=192.168.0.31:9876 rocketmq.name-server=192.168.151.57:9876
rocketmq.producer.group=libmiddle rocketmq.producer.group=libmiddle
rocketmq.producer.send-message-timeout=3000 rocketmq.producer.send-message-timeout=3000
rocketmq.producer.compress-message-body-threshold=4096 rocketmq.producer.compress-message-body-threshold=4096
@ -96,5 +96,7 @@ mq.gwj.data.topic=czks_qy_docking
mq.gwj.file.topic=czks_qy_dockingPicture mq.gwj.file.topic=czks_qy_dockingPicture
#港务局文件服务器前缀 #港务局文件服务器前缀
baseimgpath=https://qgqy.qhdsafety.com/file/ baseimgpath=https://qgqy.qhdsafety.com/file/
http.file.url=https://qgqy.qhdsafety.com/file/
cfd.prevention.api.url=http://192.168.0.31:7021/qa-regulatory-cfd corp.default.pic-path=https://qgqy.qhdsafety.com/
corp.default.back-end-path=https://qgqy.qhdsafety.com/file/
cfd.prevention.api.url=http://192.168.0.31:7021/qa-regulatory-cfd/

View File

@ -3,7 +3,7 @@ server.port=8091
#?? #??
#spring.profiles.active=local #spring.profiles.active=local
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD>31ʱʹ<EFBFBD><EFBFBD> #部署31时使用
spring.profiles.active=dev spring.profiles.active=dev
#?? #??
#spring.profiles.active=master #spring.profiles.active=master

View File

@ -139,9 +139,17 @@
<!-- 列表 --> <!-- 列表 -->
<select id="datalistPage" parameterType="page" resultType="pd"> <select id="datalistPage" parameterType="page" resultType="pd">
select select
<include refid="Field"></include> <include refid="Field"></include>,
ifnull(v.VIDEOCOUNT,0) VIDEOCOUNT
from from
<include refid="tableName"></include> f <include refid="tableName"></include> f
LEFT JOIN (SELECT
AREA_GATE_ID ,COUNT(GATE_VIDEO_ID) VIDEOCOUNT
FROM
`mkmj_gate_video`
WHERE
ISDELETE = '0'
GROUP BY AREA_GATE_ID ) v on v.AREA_GATE_ID = f.AREA_GATE_ID
where f.ISDELETE = '0' where f.ISDELETE = '0'
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 --> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
and and

View File

@ -16,7 +16,7 @@
<sql id="Field"> <sql id="Field">
f.GATE_VIDEO_ID, f.GATE_VIDEO_ID,
f.AREA_GATE_ID, f.AREA_GATE_ID,
f.VIDEO_RESOURCES_ID, f.PLATFORMVIDEOMANAGEMENT_ID,
f.LONGITUDE, f.LONGITUDE,
f.LATITUDE, f.LATITUDE,
f.CORPINFO_ID, f.CORPINFO_ID,
@ -31,7 +31,7 @@
<sql id="Field2"> <sql id="Field2">
GATE_VIDEO_ID, GATE_VIDEO_ID,
AREA_GATE_ID, AREA_GATE_ID,
VIDEO_RESOURCES_ID, PLATFORMVIDEOMANAGEMENT_ID,
LONGITUDE, LONGITUDE,
LATITUDE, LATITUDE,
CORPINFO_ID, CORPINFO_ID,
@ -46,7 +46,7 @@
<sql id="FieldValue"> <sql id="FieldValue">
#{GATE_VIDEO_ID}, #{GATE_VIDEO_ID},
#{AREA_GATE_ID}, #{AREA_GATE_ID},
#{VIDEO_RESOURCES_ID}, #{PLATFORMVIDEOMANAGEMENT_ID},
#{LONGITUDE}, #{LONGITUDE},
#{LATITUDE}, #{LATITUDE},
#{CORPINFO_ID}, #{CORPINFO_ID},
@ -85,7 +85,7 @@
set set
GATE_VIDEO_ID= GATE_VIDEO_ID, GATE_VIDEO_ID= GATE_VIDEO_ID,
AREA_GATE_ID=#{AREA_GATE_ID}, AREA_GATE_ID=#{AREA_GATE_ID},
VIDEO_RESOURCES_ID=#{VIDEO_RESOURCES_ID}, PLATFORMVIDEOMANAGEMENT_ID=#{PLATFORMVIDEOMANAGEMENT_ID},
LONGITUDE=#{LONGITUDE}, LONGITUDE=#{LONGITUDE},
LATITUDE=#{LATITUDE}, LATITUDE=#{LATITUDE},
CORPINFO_ID=#{CORPINFO_ID}, CORPINFO_ID=#{CORPINFO_ID},
@ -111,9 +111,11 @@
<!-- 列表 --> <!-- 列表 -->
<select id="datalistPage" parameterType="page" resultType="pd"> <select id="datalistPage" parameterType="page" resultType="pd">
select select
<include refid="Field"></include> <include refid="Field"></include>,
r.NAME
from from
<include refid="tableName"></include> f <include refid="tableName"></include> f
LEFT JOIN `qa-gwj-regulatory`.bus_platformvideomanagement r on r.PLATFORMVIDEOMANAGEMENT_ID = f.PLATFORMVIDEOMANAGEMENT_ID
where f.ISDELETE = '0' where f.ISDELETE = '0'
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 --> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
and and
@ -126,7 +128,7 @@
) )
</if> </if>
<if test="pd.AREA_GATE_ID != null and pd.AREA_GATE_ID != ''"> <if test="pd.AREA_GATE_ID != null and pd.AREA_GATE_ID != ''">
f.AREA_GATE_ID = #{pd.AREA_GATE_ID} AND f.AREA_GATE_ID = #{pd.AREA_GATE_ID}
</if> </if>
</select> </select>