/// <summary>
        /// ES会员索引更新(批量)
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool UpdateElasticIndexBluk(List <UserInfo> model)
        {
            if (model == null || !model.Any())
            {
                return(false);
            }
            var oUserBasics = new List <UserBasic>();

            foreach (var item in model)
            {
                var oUserBase = new UserBasic
                {
                    account_id = Convert.ToInt64(item.ShopId),
                    master_id  = Convert.ToInt64(item.MaxShopId),
                    user_id    = Convert.ToInt64(item.UserId),
                    user_name  = string.IsNullOrEmpty(item.Number) ? "" : item.Number.ToLower()
                };
                oUserBase.user_name     = string.IsNullOrEmpty(item.Name) ? "" : item.Name.ToLower();
                oUserBase.user_phone    = string.IsNullOrEmpty(item.Phone) ? "" : item.Phone.ToLower();
                oUserBase.user_pinyin   = string.IsNullOrEmpty(item.UPinYinFull) ? "" : item.UPinYinFull.ToLower();
                oUserBase.user_initials = string.IsNullOrEmpty(item.UPinYinShort) ? "" : item.UPinYinShort.ToLower();
                oUserBasics.Add(oUserBase);
            }

            var searchBasic = new SearchBasic();
            var bResult     = searchBasic.UserUpdateBluk(oUserBasics);

            return(bResult);
        }
        /// <summary>
        /// ES会员索引更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool UpdateElasticIndex(UserInfo model)
        {
            bool bResult = false;

            var oUserBase   = GetUserSearchModel(model);
            var searchBasic = new SearchBasic();

            bResult = searchBasic.UserUpdate(oUserBase);

            return(bResult);
        }