From 04f3511fb3f3598cfb1646ba7ab58bf20e1a0de3 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期三, 28 四月 2021 17:52:11 +0800 Subject: [PATCH] 优化mysql建库脚本 --- src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java index b98b66f..d11f70b 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java @@ -16,10 +16,10 @@ @Insert("INSERT INTO device_channel (channelId, deviceId, name, manufacture, model, owner, civilCode, block, " + "address, parental, parentId, safetyWay, registerWay, certNum, certifiable, errCode, secrecy, " + - "ipAddress, port, password, PTZType, status) " + + "ipAddress, port, password, PTZType, status, streamId) " + "VALUES ('${channelId}', '${deviceId}', '${name}', '${manufacture}', '${model}', '${owner}', '${civilCode}', '${block}'," + "'${address}', ${parental}, '${parentId}', ${safetyWay}, ${registerWay}, '${certNum}', ${certifiable}, ${errCode}, '${secrecy}', " + - "'${ipAddress}', ${port}, '${password}', ${PTZType}, ${status})") + "'${ipAddress}', ${port}, '${password}', ${PTZType}, ${status}, '${streamId}')") int add(DeviceChannel channel); @Update(value = {" <script>" + @@ -46,7 +46,7 @@ "<if test=\"PTZType != null\">, PTZType=${PTZType}</if>" + "<if test=\"status != null\">, status='${status}'</if>" + "<if test=\"streamId != null\">, streamId='${streamId}'</if>" + - "<if test=\"hasAudio != null\">, hasAudio='${hasAudio}'</if>" + + "<if test=\"hasAudio != null\">, hasAudio=${hasAudio}</if>" + "WHERE deviceId='${deviceId}' AND channelId='${channelId}'"+ " </script>"}) int update(DeviceChannel channel); -- Gitblit v1.8.0