Exemplo n.º 1
0
 void AddShopDetail(GanJiWebInfoEntity entity, int shopId)
 {
     List<string> shopDetail = new ShopAnalyse().GetShopDetail(entity.HouseDetail, entity.ComeFrom);
     foreach (string detail in shopDetail)
     {
         ShopDetailEntity entityDetail = new ShopDetailEntity();
         entityDetail.Info = detail;
         entityDetail.ShopID = shopId;
         entityDetail.IsActive = 1;
         entityDetail.CreateTime = DateTime.Now;
         ShopDetailBLL.GetInstance().Insert(entityDetail);
     }
 }
Exemplo n.º 2
0
 void AddPublisherInfo(GanJiWebInfoEntity entity, int shopId)
 {
     PublisherInfoEntity publisher = new ShopAnalyse().GetPublisherInfo(entity.HouseDetail, entity.ComeFrom);
     if (!string.IsNullOrEmpty(publisher.UserName) &&
         (!string.IsNullOrEmpty(publisher.UserMobile) ||
         !string.IsNullOrEmpty(publisher.MobilePic)))
     {
         publisher.ShopID = shopId;
         if (!string.IsNullOrEmpty(publisher.MobilePic))
         {
             publisher.UserMobile = "";// GetInternetPic(publisher.MobilePic);
         }
         publisher.CreateTime = DateTime.Now;
         PublisherInfoBLL.GetInstance().Insert(publisher);
     }
 }
Exemplo n.º 3
0
 void AddShopPic(GanJiWebInfoEntity entity, int shopId)
 {
     List<string> shopPic = new ShopAnalyse().GetShopPic(entity.HouseImage, entity.ComeFrom);
     foreach (string picUrl in shopPic)
     {
         ShopPicEntity entityPic = new ShopPicEntity();
         entityPic.PicUrl = picUrl;
         entityPic.ShopID = shopId;
         entityPic.IsActive = 1;
         entityPic.CreateTime = DateTime.Now;
         ShopPicBLL.GetInstance().Insert(entityPic);
     }
 }