Exemplo n.º 1
0
        ///// <summary>
        ///// 刷新商品缓存
        ///// </summary>
        ///// <param name="refreshIds">商品Id</param>
        ///// <returns></returns>
        //public ReplyCommentRes RefreshProducts(string refreshIds)
        //{
        //	var result = new ReplyCommentRes();
        //	var req = new ReplyCommentReq()
        //	{
        //		ReplyContent = refreshIds
        //	};
        //	result = UpsServiceClient.Send<ReplyCommentRes>(req);
        //	return result;
        //}

        /// <summary>
        /// 批量导入Excel数据
        /// </summary>
        /// <param name="importList"></param>
        /// <returns></returns>
        public ImportCommentsRes ImportComments(List <VipCommentProductDetail> importList)
        {
            var result = new ImportCommentsRes();
            var req    = new ImportCommentsReq()
            {
                ImprotList = Mapper.MappGereric <VipCommentProductDetail, VipCommentProduct>(importList)
            };

            result = UpsServiceClient.Send <ImportCommentsRes>(req);
            return(result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 评论加精
        /// </summary>
        /// <param name="cids">要加精的id</param>
        /// <param name="uncids">要去掉加精的id</param>
        /// <returns></returns>
        public SetEssenceRes SetEssence(string cids, string uncids)
        {
            var result = new SetEssenceRes();
            var req    = new SetEssenceReq()
            {
                Cids   = cids,
                Uncids = uncids
            };

            result = UpsServiceClient.Send <SetEssenceRes>(req);
            return(result);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 批量审核
        /// </summary>
        /// <param name="checkStr">审核内容</param>
        /// <param name="checkInfo">拒绝原因</param>
        /// <param name="checkUserId">审核人</param>
        /// <returns></returns>
        public AuditCommentManageRes AuditCommentManage(string checkStr, string checkInfo, int checkUserId)
        {
            var result = new AuditCommentManageRes();
            var req    = new AuditCommentManageReq()
            {
                CheckStr    = checkStr,
                CheckInfo   = checkInfo,
                CheckUserId = checkUserId
            };

            result = UpsServiceClient.Send <AuditCommentManageRes>(req);
            return(result);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 回复评论
        /// </summary>
        /// <param name="rid">评论id</param>
        /// <param name="replyinfo">回复内容</param>
        /// <param name="replyUserId">回复人</param>
        /// <returns></returns>
        public ReplyCommentRes ReplyComment(int rid, string replyinfo, int replyUserId)
        {
            var result = new ReplyCommentRes();
            var req    = new ReplyCommentReq()
            {
                Rid          = rid,
                ReplyContent = replyinfo,
                ReplyUserId  = replyUserId
            };

            result = UpsServiceClient.Send <ReplyCommentRes>(req);
            return(result);
        }
Exemplo n.º 5
0
        /// <summary>
        /// 查询特卖供应商
        /// </summary>
        /// <param name="orderCode"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public string QueryTemaiProvider(string orderCode, int type)
        {
            //根据订单号查询商品sku
            var orderInfo = UdpClient.Send <QueryOrderInfoForHolycaRes>(new QueryOrderInfoForHolycaReq
            {
                OrderNoCsv = orderCode
            });
            int?skuId        = 0;
            var providerName = "";

            if (orderInfo.DoFlag && orderInfo.OrderInfoForHolycaDtos != null && orderInfo.OrderInfoForHolycaDtos.Any())
            {
                skuId = orderInfo.OrderInfoForHolycaDtos.First().ProductNo;
            }

            if (skuId == 0)
            {
                return("");
            }

            if (type == 2)
            {
                //特卖:通过SkuID查询对应供应商
                var tmInfo = TmOutServiceClient.Send <tmdll.GeSkuVendorBySkuRes>(new tmdll.GeSkuVendorBySkuReq
                {
                    SkuIds = skuId.ToString()
                });
                providerName = tmInfo.SkuVendorList.First().CompanyName;
            }
            if (type == 69)
            {
                //代发货:通过SkuID查询对应供应商
                var upsInfo = UpsServiceClient.Send <upsdll.GeSkuVendorBySkuRes>(new upsdll.GeSkuVendorBySkuReq
                {
                    SkuIdList = new List <int>()
                    {
                        skuId ?? 0
                    }
                });
                if (upsInfo.DoFlag)
                {
                    providerName = upsInfo.SkuVendorList.First().CompanyName;
                }
            }

            return(providerName);
        }
Exemplo n.º 6
0
        /// <summary>
        /// 查询评论列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public CommentsManageRefer QueryCommentsPageList(CommentsManageRefer request)
        {
            var result = new CommentsManageRefer();
            var req    = new QueryCommentsPageListReq()
            {
                QueryCommentsReqParam = Mapper.Map <VipCommentProductDetail, QueryCommentsReqParam>(request.CommentDetail),
                PageIndex             = (int)request.PageIndex,
                PageSize = (int)request.PageSize
            };
            var res = UpsServiceClient.Send <QueryCommentsPageListRes>(req);

            if (res.DoFlag)
            {
                result.List  = Mapper.MappGereric <VipCommentProduct, VipCommentProductDetail>(res.VipCommnetsList);
                result.Total = res.TotalCount;
            }
            result.CommentDetail = request.CommentDetail;
            result.PageIndex     = request.PageIndex;
            result.PageSize      = request.PageSize;
            return(result);
        }