Browse Source

页面

master
郑根木 2 years ago
parent
commit
49a25fd3fc
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelCatalogCache.java

+ 5
- 0
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelCatalogCache.java View File

@@ -3,6 +3,7 @@ package cc.smtweb.system.bpm.web.design.table;
import cc.smtweb.framework.core.annotation.SwCache; import cc.smtweb.framework.core.annotation.SwCache;
import cc.smtweb.framework.core.cache.AbstractCache; import cc.smtweb.framework.core.cache.AbstractCache;
import cc.smtweb.framework.core.cache.CacheManager; 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.DbEngine;
import cc.smtweb.framework.core.db.EntityDao; import cc.smtweb.framework.core.db.EntityDao;
import cc.smtweb.framework.core.db.vo.ModelCatalog; import cc.smtweb.framework.core.db.vo.ModelCatalog;
@@ -16,11 +17,15 @@ import java.util.List;
*/ */
@SwCache(ident = "ASP_MODEL_CATALOG", title = "目录") @SwCache(ident = "ASP_MODEL_CATALOG", title = "目录")
public class ModelCatalogCache extends AbstractCache<ModelCatalog> { public class ModelCatalogCache extends AbstractCache<ModelCatalog> {
public final static String CACHE_KEY = "prj";

public static ModelCatalogCache getInstance() { public static ModelCatalogCache getInstance() {
return CacheManager.getIntance().getCache(ModelCatalogCache.class); return CacheManager.getIntance().getCache(ModelCatalogCache.class);
} }


public ModelCatalogCache() { public ModelCatalogCache() {
regList(SwConsts.KEY_PARENT_ID, k-> String.valueOf(k.getParentId()));
regList(CACHE_KEY, k-> k.getPrjId() + SwConsts.SPLIT_CHAR + k.getParentId());
} }


@Override @Override


Loading…
Cancel
Save