From 80bfd9ce026e67dd2eb86c519b5b1b70e3cc7d12 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期三, 17 十一月 2021 17:03:48 +0800 Subject: [PATCH] 使用@Async多线程处理sip消息 --- src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 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 index 4fac2c1..ed2d8c8 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java @@ -32,6 +32,8 @@ "keepaliveTime," + "createTime," + "updateTime," + + "charset," + + "subscribeCycleForCatalog," + "online" + ") VALUES (" + "#{deviceId}," + @@ -47,15 +49,17 @@ "#{expires}," + "#{registerTime}," + "#{keepaliveTime}," + - "datetime('now','localtime')," + - "datetime('now','localtime')," + + "#{createTime}," + + "#{updateTime}," + + "#{charset}," + + "#{subscribeCycleForCatalog}," + "#{online}" + ")") int add(Device device); @Update(value = {" <script>" + "UPDATE device " + - "SET updateTime=datetime('now','localtime')" + + "SET updateTime='${updateTime}'" + "<if test=\"name != null\">, name='${name}'</if>" + "<if test=\"manufacturer != null\">, manufacturer='${manufacturer}'</if>" + "<if test=\"model != null\">, model='${model}'</if>" + @@ -69,6 +73,8 @@ "<if test=\"registerTime != null\">, registerTime='${registerTime}'</if>" + "<if test=\"keepaliveTime != null\">, keepaliveTime='${keepaliveTime}'</if>" + "<if test=\"expires != null\">, expires=${expires}</if>" + + "<if test=\"charset != null\">, charset='${charset}'</if>" + + "<if test=\"subscribeCycleForCatalog != null\">, subscribeCycleForCatalog=#{subscribeCycleForCatalog}</if>" + "WHERE deviceId='${deviceId}'"+ " </script>"}) int update(Device device); -- Gitblit v1.8.0