From daeaadd1ca23beaa4a435aa908bf548e6322041d Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 25 五月 2023 19:06:58 +0800 Subject: [PATCH] 处理分类树问题以及搭建组件布局 --- Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/cache/BtmTypeCache.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/cache/BtmTypeCache.java b/Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/cache/BtmTypeCache.java index 59526d8..799f1fa 100644 --- a/Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/cache/BtmTypeCache.java +++ b/Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/cache/BtmTypeCache.java @@ -9,6 +9,7 @@ import org.springblade.core.tool.utils.SpringUtil; import org.springblade.core.tool.utils.StringPool; +import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -21,8 +22,6 @@ public class BtmTypeCache { private static final String BTM_DETAIL = "btm:id"; - - private static final String BTM_REF = "btm:list"; private static final String BTM_TYPE_CACHE = "ubcs:btm"; @@ -73,7 +72,7 @@ public static List<BtmTypeVO> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection) { String keyPrefix = BTM_IDS.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); return CacheUtil.get(BTM_TYPE_CACHE,keyPrefix,Func.toStr(pkBtmTypeCollection.stream().map(s -> s.substring(0,5))),() ->{ - R<List<BtmTypeVO>> result = getBtmTypeClient().listBtmTypeByOidCollection(pkBtmTypeCollection); + R<List<BtmTypeVO>> result = getBtmTypeClient().listBtmTypeByOidCollection(new ArrayList<>(pkBtmTypeCollection)); return result.getData(); }); } -- Gitblit v1.9.3