From 49a25fd3fcee68507e09ff8f6ed4dd008ce5ffd2 Mon Sep 17 00:00:00 2001 From: zhenggm Date: Fri, 3 Jun 2022 12:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cc/smtweb/system/bpm/web/design/table/ModelCatalogCache.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelCatalogCache.java b/smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelCatalogCache.java index a7d5d46..d564575 100644 --- a/smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelCatalogCache.java +++ b/smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelCatalogCache.java @@ -3,6 +3,7 @@ package cc.smtweb.system.bpm.web.design.table; import cc.smtweb.framework.core.annotation.SwCache; import cc.smtweb.framework.core.cache.AbstractCache; import cc.smtweb.framework.core.cache.CacheManager; +import cc.smtweb.framework.core.common.SwConsts; import cc.smtweb.framework.core.db.DbEngine; import cc.smtweb.framework.core.db.EntityDao; import cc.smtweb.framework.core.db.vo.ModelCatalog; @@ -16,11 +17,15 @@ import java.util.List; */ @SwCache(ident = "ASP_MODEL_CATALOG", title = "目录") public class ModelCatalogCache extends AbstractCache { + public final static String CACHE_KEY = "prj"; + public static ModelCatalogCache getInstance() { return CacheManager.getIntance().getCache(ModelCatalogCache.class); } public ModelCatalogCache() { + regList(SwConsts.KEY_PARENT_ID, k-> String.valueOf(k.getParentId())); + regList(CACHE_KEY, k-> k.getPrjId() + SwConsts.SPLIT_CHAR + k.getParentId()); } @Override