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}'"+
"" +
""})