소스 검색

页面

master
郑根木 2 년 전
부모
커밋
49a25fd3fc
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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 파일 보기

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


불러오는 중...
취소
저장