Пример #1
0
        /// <summary> 删除标准,同时删除索引 </summary>
        public void DeleteStandards(string data)
        {
            var ids = data.JsonTo <List <int> >();

            if (ids == null || ids.Count < 1)
            {
                return;
            }
            var iiids = new List <string>();

            foreach (var id in ids)
            {
                var resourcekey = "勘探知识库\\标准规范\\外部链接\\" + id;
                iiids.Add(resourcekey.ToMD5());
            }
            var count = _indexService.Delete(iiids);

            if (count != null && count.Length > 0)
            {
                standardService.RemoveStandards(ids);
            }
            else
            {
                //删除失败
            }
        }