Example #1
0
        /// <summary>
        /// 商品评价数量
        /// </summary>
        /// <param name="commodityId">商品ID</param>
        /// <param name="appId">appId</param>
        /// <returns></returns>
        public Jinher.AMP.BTP.Deploy.CustomDTO.NumResultSDTO GetReviewNumExt(System.Guid commodityId, System.Guid appId)
        {
            NumResultSDTO num = new NumResultSDTO();

            num.TotalReview = Commodity.ObjectSet().Where(n => n.Id == commodityId).Select(n => n.TotalReview).FirstOrDefault();
            return(num);
        }
Example #2
0
 public void TestGetReviewNum()
 {
     string        requestData = "{\"appId\":\"" + Setting.AppId + "\", \"commodityId\":\"3AAE2EBB-25F2-4743-A173-93DA170D0A21\"}";
     var           rest        = new RestRequestTest("Jinher.AMP.BTP.SV.ReviewSV.svc/GetReviewNum");
     string        retJson     = rest.Execute(requestData);
     NumResultSDTO returnDTO   = JsonHelper.JsonDeserialize <NumResultSDTO>(retJson);
 }