/// <summary>
        /// 获取咨询列表
        /// </summary>
        /// <param name="queryInfo"></param>
        /// <returns></returns>
        public static PagedResult <ConsultationInfo> GetProductDetailConsultList(ConsultQueryInfo queryInfo)
        {
            PagedResult <ConsultationInfo> productConsultation = ConsultationDA.GetProductDetailConsultList(queryInfo);

            if (productConsultation != null)
            {
                foreach (var item in productConsultation)
                {
                    item.Content = CommonFacade.SetCannotOnlineWordsMask(item.Content);
                }
            }
            return(productConsultation);
        }
        /// <summary>
        /// 获取撮合交易列表
        /// </summary>
        /// <param name="queryInfo"></param>
        /// <returns></returns>
        public static PagedResult <MatchedTradingInfo> GetProductDetailMatchedTradingList(MatchedTradingQueryInfo queryInfo)
        {
            PagedResult <MatchedTradingInfo> productConsultation = MatchedTradingDA.GetProductDetailMatchedTradingList(queryInfo);

            if (productConsultation != null)
            {
                foreach (var item in productConsultation)
                {
                    item.Content = CommonFacade.SetCannotOnlineWordsMask(item.Content);
                }
            }
            return(productConsultation);
        }
        /// <summary>
        /// 获取咨询
        /// </summary>
        /// <param name="queryInfo"></param>
        /// <returns></returns>
        public static ConsultationInfo GetConsultListBySysNo(ConsultQueryInfo queryInfo)
        {
            ConsultationInfo consultationInfo = ConsultationDA.GetConsultListBySysNo(queryInfo);

            if (consultationInfo != null)
            {
                consultationInfo.Content = CommonFacade.SetCannotOnlineWordsMask(consultationInfo.Content);
                if (consultationInfo.PagedReplyList != null)
                {
                    foreach (var reply in consultationInfo.PagedReplyList)
                    {
                        reply.Content = CommonFacade.SetCannotOnlineWordsMask(reply.Content);
                    }
                }
            }
            return(consultationInfo);
        }
Exemple #4
0
        /// <summary>
        /// 获取评论详情
        /// </summary>
        /// <param name="queryInfo"></param>
        /// <returns></returns>
        public static Product_ReviewDetail GetProductReviewInfo(Product_ReviewQueryInfo queryInfo)
        {
            Product_ReviewDetail productReviewDetail = ReviewDA.GetProductReviewInfo(queryInfo);

            if (productReviewDetail != null)
            {
                productReviewDetail.Cons    = CommonFacade.SetCannotOnlineWordsMask(productReviewDetail.Cons);
                productReviewDetail.Prons   = CommonFacade.SetCannotOnlineWordsMask(productReviewDetail.Prons);
                productReviewDetail.Service = CommonFacade.SetCannotOnlineWordsMask(productReviewDetail.Service);
                if (productReviewDetail.ReplieList != null)
                {
                    foreach (var reply in productReviewDetail.ReplieList)
                    {
                        reply.Content = CommonFacade.SetCannotOnlineWordsMask(reply.Content);
                    }
                }
            }
            return(productReviewDetail);
        }
Exemple #5
0
        /// <summary>
        /// 获取评论列表
        /// </summary>
        /// <param name="queryInfo"></param>
        /// <returns></returns>
        public static Product_ReviewList GetProductReviewListByProductGroupSysNoForProduct(Product_ReviewQueryInfo queryInfo)
        {
            Product_ReviewList productReviewList = ReviewDA.GetProductReviewListByProductGroupSysNoForProduct(queryInfo);

            if (productReviewList != null && productReviewList.ProductReviewDetailList != null)
            {
                foreach (var productReviewDetail in productReviewList.ProductReviewDetailList)
                {
                    productReviewDetail.Cons    = CommonFacade.SetCannotOnlineWordsMask(productReviewDetail.Cons);
                    productReviewDetail.Prons   = CommonFacade.SetCannotOnlineWordsMask(productReviewDetail.Prons);
                    productReviewDetail.Service = CommonFacade.SetCannotOnlineWordsMask(productReviewDetail.Service);
                    if (productReviewDetail.ReplieList != null)
                    {
                        foreach (var reply in productReviewDetail.ReplieList)
                        {
                            reply.Content = CommonFacade.SetCannotOnlineWordsMask(reply.Content);
                        }
                    }
                }
            }
            return(productReviewList);
        }