From 6120e6bd7b74669683ae4f184a71a94fa0036ce7 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 04 一月 2024 17:26:47 +0800 Subject: [PATCH] 添加金仓数据库x86驱动,优化兼容接口通道列表查询。修复多个通道同时推送 --- src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java index edd34e5..62d6101 100755 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java @@ -31,8 +31,8 @@ @Update(value = {" <script>" + "UPDATE wvp_platform_catalog " + - "SET name=#{name}" + - "WHERE id=#{id} and platform_id=#{platformId}"+ + "SET name=#{platformCatalog.name}" + + "WHERE id=#{platformCatalog.id} and platform_id=#{platformCatalog.platformId}"+ "</script>"}) int update(@Param("platformCatalog") PlatformCatalog platformCatalog); @@ -51,4 +51,16 @@ " from wvp_platform_catalog pc " + " WHERE pc.id=#{id} and pc.platform_id=#{platformId}") PlatformCatalog selectByPlatFormAndCatalogId(@Param("platformId") String platformId, @Param("id") String id); + + + @Delete("<script> "+ + "DELETE from wvp_platform_catalog where platform_id=#{platformId} and id in " + + "<foreach collection='ids' item='item' open='(' separator=',' close=')'>" + + "#{item} " + + "</foreach>" + + "</script>") + int deleteAll(String platformId, List<String> ids); + + @Select("SELECT id from wvp_platform_catalog WHERE platform_id=#{platformId} and parent_id = #{id}") + List<String> queryCatalogFromParent(@Param("id") String id, @Param("platformId") String platformId); } -- Gitblit v1.8.0