From 5d673fb03339e8232df66ac3a096c4d27ee9651e Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: Sun, 3 Jul 2022 08:47:47 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E9=81=93=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=86=99=E5=85=A5=E6=95=B0=E6=8D=AE=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java | 5 +++--
1 file changed, 3 insertions(+), 2 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 69ce4a7d..c9a31d4e 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
@@ -156,7 +156,8 @@ public interface DeviceChannelMapper {
"'${item.certNum}', ${item.certifiable}, ${item.errCode}, '${item.secrecy}', " +
"'${item.ipAddress}', ${item.port}, '${item.password}', ${item.PTZType}, ${item.status}, " +
"'${item.streamId}', ${item.longitude}, ${item.latitude},${item.longitudeGcj02}, " +
- "${item.latitudeGcj02},${item.longitudeWgs84}, ${item.latitudeWgs84},'${item.createTime}', '${item.updateTime}, '${item.businessGroupId}')" +
+ "${item.latitudeGcj02},${item.longitudeWgs84}, ${item.latitudeWgs84},'${item.createTime}', '${item.updateTime}', " +
+ "'${item.businessGroupId}') " +
" " +
"ON DUPLICATE KEY UPDATE " +
"updateTime=VALUES(updateTime), " +
@@ -226,7 +227,7 @@ public interface DeviceChannelMapper {
", latitudeGcj02=${item.latitudeGcj02}" +
", longitudeWgs84=${item.longitudeWgs84}" +
", latitudeWgs84=${item.latitudeWgs84}" +
- ", businessGroupId=${item.businessGroupId}" +
+ ", businessGroupId=#{item.businessGroupId}" +
"WHERE deviceId='${item.deviceId}' AND channelId='${item.channelId}'"+
"" +
""})