From 208e03482281f2b901d507b1f890aa01ea6f8456 Mon Sep 17 00:00:00 2001
From: wangxinlong <wangxinlong@jiangyuetech.com>
Date: 星期五, 07 六月 2024 18:13:45 +0800
Subject: [PATCH] 录像下载失败未正常释放ssrc
---
src/main/java/com/genersoft/iot/vmp/storager/dao/UserApiKeyMapper.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/UserApiKeyMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/UserApiKeyMapper.java
index d235475..18539f1 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/UserApiKeyMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/UserApiKeyMapper.java
@@ -10,7 +10,8 @@
@Repository
public interface UserApiKeyMapper {
- @SelectKey(statement = "SELECT LAST_INSERT_ID() AS id", keyProperty = "id", before = false, resultType = Integer.class)
+ @SelectKey(databaseId = "postgresql", statement = "SELECT currval('wvp_user_api_key_id_seq'::regclass) AS id", keyProperty = "id", before = false, resultType = Integer.class)
+ @SelectKey(databaseId = "mysql", statement = "SELECT LAST_INSERT_ID() AS id", keyProperty = "id", before = false, resultType = Integer.class)
@Insert("INSERT INTO wvp_user_api_key (user_id, app, api_key, expired_at, remark, enable, create_time, update_time) VALUES" +
"(#{userId}, #{app}, #{apiKey}, #{expiredAt}, #{remark}, #{enable}, #{createTime}, #{updateTime})")
int add(UserApiKey userApiKey);
--
Gitblit v1.8.0