public void ProcessorGroupBuySO(ECCentral.BizEntity.MKT.GroupBuyingInfo gbInfo) { //处理团购状态为已完成的团购活动 if (gbInfo.Status == GroupBuyingStatus.Finished || gbInfo.SettlementStatus == GroupBuyingSettlementStatus.MoreThan) { if (gbInfo.SettlementStatus == GroupBuyingSettlementStatus.No && !gbInfo.SuccessDate.HasValue) { FailedGroupBuyProcess(gbInfo); } else if ((gbInfo.SettlementStatus == GroupBuyingSettlementStatus.No && gbInfo.SuccessDate.HasValue) || gbInfo.SettlementStatus == GroupBuyingSettlementStatus.MoreThan) { SuccessfulGroupBuyProcess(gbInfo); SODA.UpdateGroupBuySOItemSettlementStatusByGroupBuySysNo(gbInfo.SysNo.Value, BizEntity.SO.SettlementStatus.Success); SODA.UpdateGroupBuySOSettlementStatusByGroupBuySysNo(gbInfo.SysNo.Value, BizEntity.SO.SettlementStatus.Success); } } }