修复设备初次注册无通道

This commit is contained in:
panlinlin
2024-07-20 06:35:42 +08:00
parent 1dc0cb0c83
commit d201be2f88
3 changed files with 9 additions and 18 deletions

View File

@@ -26,6 +26,7 @@ public interface DeviceChannelMapper {
"#{ipAddress}, #{port}, #{password}, #{status}, #{longitude}, #{latitude}, #{ptzType}, #{positionType}, #{roomType}, #{useType}, " +
"#{supplyLightType}, #{directionType}, #{resolution}, #{businessGroupId}, #{downloadSpeed}, #{svcSpaceSupportMod}," +
" #{svcTimeSupportMode}, #{createTime}, #{updateTime}, #{subCount}, #{streamId}, #{hasAudio}, #{gpsTime}, #{streamIdentification})")
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
int add(DeviceChannel channel);
@Update(value = {" <script>" +

View File

@@ -110,6 +110,7 @@ public interface DeviceMapper {
"#{geoCoordSys}," +
"#{onLine}" +
")")
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
int add(Device device);
@Update(value = {" <script>" +