From 205f1f1f6025bc812ccb7cf2408336d956c65d1a Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期日, 08 十月 2023 15:41:24 +0800 Subject: [PATCH] 优化国标级联心跳失败再次注册的逻辑 --- src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java old mode 100644 new mode 100755 index 96773fe..30ffd2b --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java @@ -2,6 +2,7 @@ import com.genersoft.iot.vmp.gb28181.bean.Device; import org.apache.ibatis.annotations.*; +import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @@ -229,7 +230,7 @@ "geo_coord_sys,"+ "on_line"+ " FROM wvp_device WHERE ip = #{host} AND port=#{port}") - Device getDeviceByHostAndPort(String host, int port); + Device getDeviceByHostAndPort(@Param("host") String host, @Param("port") int port); @Update(value = {" <script>" + "UPDATE wvp_device " + -- Gitblit v1.8.0