/// <summary> /// 关闭没有支付的订单 /// </summary> /// <param name="teamInfoEntity"></param> /// <param name="DeliveryRegion"></param> /// <param name="language"></param> public void CloseNotPayOrderInfo(TeamInfoEntity teamInfoEntity, int DeliveryRegion, int language) { //LogHelper.Info("--------TeamPayAfter----close OrderInfo--111-----开始---团code:" + teamInfoEntity.TeamCode); /// 将下了订单没有支付的订单状态置为关闭 IList <OrderInfoEntity> NeedCloseOrderInfoList = orderManager.GetNeedCloseOrderInfoByCode(teamInfoEntity.TeamCode); //LogHelper.Info("--------TeamPayAfter----close OrderInfo-----开始---需要关闭订单的数量:" + NeedCloseOrderInfoList.Count()); foreach (OrderInfoEntity orderInfo in NeedCloseOrderInfoList) { var model = Bll.CancelOrder(orderInfo.UserId, DeliveryRegion, language, orderInfo.OrderCode); //LogHelper.Info("--------TeamPayAfter----close OrderInfo-----结束---关闭订单结果:" + model); } }
public ActionResult Cancel(string orderCode) { try { if (string.IsNullOrEmpty(orderCode)) { return(this.HandleError("订单编号不能为空!")); } var model = Bll.CancelOrder(base.LoginUser.UserID, base.DeliveryRegion, base.language, orderCode); return(this.HandleSuccess("ok")); } catch (Exception ex) { return(this.HandleError(ex)); } }