/// <summary> /// 设置拼团营销活动费用设置 /// </summary> /// <param name="price"></param> public static void SetMarketServicePrice(decimal price) { Entities.MarketSettingInfo marketser = new Entities.MarketSettingInfo() { TypeId = CurMarketType, Price = price }; MarketApplication.AddOrUpdateServiceSetting(marketser); }
/// <summary> /// 拼团营销活动费用设置 /// </summary> /// <returns></returns> public static decimal GetMarketServicePrice() { var marketser = MarketApplication.GetServiceSetting(CurMarketType); if (marketser == null) { marketser = new Entities.MarketSettingInfo() { TypeId = CurMarketType, Price = 0 }; MarketApplication.AddOrUpdateServiceSetting(marketser); } return(marketser.Price); }