Commit 5d673fb03339e8232df66ac3a096c4d27ee9651e
1 parent
f5fcc79a
修复通道数据写入数据库
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
| @@ -156,7 +156,8 @@ public interface DeviceChannelMapper { | @@ -156,7 +156,8 @@ public interface DeviceChannelMapper { | ||
| 156 | "'${item.certNum}', ${item.certifiable}, ${item.errCode}, '${item.secrecy}', " + | 156 | "'${item.certNum}', ${item.certifiable}, ${item.errCode}, '${item.secrecy}', " + |
| 157 | "'${item.ipAddress}', ${item.port}, '${item.password}', ${item.PTZType}, ${item.status}, " + | 157 | "'${item.ipAddress}', ${item.port}, '${item.password}', ${item.PTZType}, ${item.status}, " + |
| 158 | "'${item.streamId}', ${item.longitude}, ${item.latitude},${item.longitudeGcj02}, " + | 158 | "'${item.streamId}', ${item.longitude}, ${item.latitude},${item.longitudeGcj02}, " + |
| 159 | - "${item.latitudeGcj02},${item.longitudeWgs84}, ${item.latitudeWgs84},'${item.createTime}', '${item.updateTime}, '${item.businessGroupId}')" + | 159 | + "${item.latitudeGcj02},${item.longitudeWgs84}, ${item.latitudeWgs84},'${item.createTime}', '${item.updateTime}', " + |
| 160 | + "'${item.businessGroupId}') " + | ||
| 160 | "</foreach> " + | 161 | "</foreach> " + |
| 161 | "ON DUPLICATE KEY UPDATE " + | 162 | "ON DUPLICATE KEY UPDATE " + |
| 162 | "updateTime=VALUES(updateTime), " + | 163 | "updateTime=VALUES(updateTime), " + |
| @@ -226,7 +227,7 @@ public interface DeviceChannelMapper { | @@ -226,7 +227,7 @@ public interface DeviceChannelMapper { | ||
| 226 | "<if test='item.latitudeGcj02 != null'>, latitudeGcj02=${item.latitudeGcj02}</if>" + | 227 | "<if test='item.latitudeGcj02 != null'>, latitudeGcj02=${item.latitudeGcj02}</if>" + |
| 227 | "<if test='item.longitudeWgs84 != null'>, longitudeWgs84=${item.longitudeWgs84}</if>" + | 228 | "<if test='item.longitudeWgs84 != null'>, longitudeWgs84=${item.longitudeWgs84}</if>" + |
| 228 | "<if test='item.latitudeWgs84 != null'>, latitudeWgs84=${item.latitudeWgs84}</if>" + | 229 | "<if test='item.latitudeWgs84 != null'>, latitudeWgs84=${item.latitudeWgs84}</if>" + |
| 229 | - "<if test='item.businessGroupId != null'>, businessGroupId=${item.businessGroupId}</if>" + | 230 | + "<if test='item.businessGroupId != null'>, businessGroupId=#{item.businessGroupId}</if>" + |
| 230 | "WHERE deviceId='${item.deviceId}' AND channelId='${item.channelId}'"+ | 231 | "WHERE deviceId='${item.deviceId}' AND channelId='${item.channelId}'"+ |
| 231 | "</foreach>" + | 232 | "</foreach>" + |
| 232 | "</script>"}) | 233 | "</script>"}) |