/// <summary> /// 删除店铺等级 /// </summary> /// <param name="storeRid">店铺等级id</param> /// <returns>-1代表此等级下还有店铺未删除,0代表此店铺等级不存在,1代表删除成功</returns> public static int DeleteStoreRankById(int storeRid) { StoreRankInfo storeRankInfo = GetStoreRankById(storeRid); if (storeRankInfo != null) { if (AdminStores.GetStoreCountByStoreRid(storeRid) > 0) { return(-1); } NStore.Data.StoreRanks.DeleteStoreRankById(storeRid); NStore.Core.BMACache.Remove(CacheKeys.MALL_STORE_RANKLIST); return(1); } return(0); }
/// <summary> /// 删除店铺行业 /// </summary> /// <param name="storeIid">店铺行业id</param> /// <returns>-1代表此店铺行业下还有店铺未删除,0代表此店铺行业不存在,1代表删除成功</returns> public static int DeleteStoreIndustryById(int storeIid) { StoreIndustryInfo storeIndustryInfo = GetStoreIndustryById(storeIid); if (storeIndustryInfo != null) { if (AdminStores.GetStoreCountByStoreIid(storeIid) > 0) { return(-1); } NStore.Data.StoreIndustries.DeleteStoreIndustryById(storeIid); NStore.Core.BMACache.Remove(CacheKeys.MALL_STORE_INDUSTRYLIST); return(1); } return(0); }