增加绑定摄像头

pull/10/head
zhaoyu 2024-01-23 18:56:18 +08:00
parent fc979979d0
commit ea1871b0bf
3 changed files with 18 additions and 7 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

@ -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>