Ejemplo n.º 1
0
        public static List<BaseItemDetailsEntity> GetListByTargetTableByCache(BaseUserInfo userInfo, string systemCode, string tableName)
        {
            List<BaseItemDetailsEntity> result = null;

            if (!string.IsNullOrEmpty(tableName))
            {
                string key = "ItemDetails:" + tableName;
                result = BaseItemDetailsManager.GetListCache(key);
            }

            // 远程通过接口获取数据
            if (result == null)
            {
                result = GetListByTargetTable(userInfo, systemCode, tableName);
            }

            return result;
        }