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); } }
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); } }
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); } }