private void SuccessfulGroupBuyProcess(GroupBuyingInfo gbInfo) { List <SOItemInfo> GroupBuyItemList = SODA.GetGroupBuySOItemByGroupBuySysNo(gbInfo.SysNo.Value); SOProcessor soProcessor = ObjectFactory <SOProcessor> .Instance; foreach (SOItemInfo groupBuyItem in GroupBuyItemList) { //更新订单 try { //修改团购商品价格 SOInfo soInfo = SODA.GetSOBySOSysNo(groupBuyItem.SOSysNo.Value); soProcessor.ProcessSO(new SOAction.SOCommandInfo { Command = SOAction.SOCommand.Job, SOInfo = soInfo, Parameter = new object[] { groupBuyItem.ProductSysNo } }); } catch (Exception ex) { SODA.UpdateGroupBuySOAndItemSettlementStatus(groupBuyItem.SOSysNo.Value, groupBuyItem.ProductSysNo.Value, SettlementStatus.Fail); ExceptionHelper.HandleException(ex); continue; } } ExternalDomainBroker.UpdateGroupBuySettlementStatus(gbInfo.SysNo.Value, GroupBuyingSettlementStatus.Yes); }