/// <summary> /// 批量删除 /// </summary> /// <param name="ids"></param> public static void DeleteUserBasic(List <long> ids) { if (ids != null && ids.Count > 0) { var masterIds = GetShopList(ids); if (masterIds != null && masterIds.Count > 0) { foreach (var item in masterIds) { var delWatch = new Stopwatch(); delWatch.Start(); var oResult = _Search.BlukDocumentDelete(item.Key); if (oResult != null && oResult.ContainsKey("deleted")) { delWatch.Stop(); Show(string.Format("成功删除{0}-{1}总店会员{2} - {3}ms", item.Key, item.Value, oResult["deleted"], delWatch.ElapsedMilliseconds)); } } } } }
/// <summary> /// 会员删除(批量) /// </summary> /// <param name="userIds"></param> /// <returns></returns> public bool UserDeleteBluk(List <long> userIds) { return(_search.BlukDocumentDelete(userIds.Select(x => x.ToString()))); }