/// <summary> /// 字典项中职级的列表 /// </summary> /// <returns></returns> public IEnumerable <DictitemEntity> GetList() { var cacheList = CacheFactory.Cache().GetCache <IEnumerable <DictitemEntity> >(busines.cacheKey); if (cacheList == null) { var data = busines.GetList(); CacheFactory.Cache().WriteCache(data, busines.cacheKey); return(data); } else { return(cacheList); } }
public ActionResult GetListJson(string queryJson) { var data = dictitembll.GetList(queryJson); return(ToJsonResult(data)); }