Ver código fonte

页面

master
郑根木 2 anos atrás
pai
commit
49a25fd3fc
1 arquivos alterados com 5 adições e 0 exclusões
  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 Ver arquivo

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


Carregando…
Cancelar
Salvar