From c9f091d560a17b09bb55284629055ad940c1b90c Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期六, 02 四月 2022 18:23:50 +0800 Subject: [PATCH] Merge pull request #419 from nikmu/wvp-28181-2.0 --- src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java | 3 +++ 1 files changed, 3 insertions(+), 0 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 59ecdbc..95015bd 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformCatalogMapper.java @@ -41,4 +41,7 @@ @Select("SELECT *, (SELECT COUNT(1) from platform_catalog where parentId = pc.id) as childrenCount FROM platform_catalog pc WHERE pc.platformId=#{platformId}") List<PlatformCatalog> selectByPlatForm(String platformId); + + @Select("SELECT pc.* FROM platform_catalog pc WHERE pc.id = (SELECT pp.catalogId from parent_platform pp WHERE pp.serverGBId=#{platformId})") + PlatformCatalog selectDefaultByPlatFormId(String platformId); } -- Gitblit v1.8.0