|
|
@@ -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<ModelCatalog> { |
|
|
|
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 |
|
|
|