public CustomJsonResult ConfirmPayByStaff(int operater, int orderId)
        {
            CustomJsonResult result = new CustomJsonResult();

            OrderPayResultNotifyByStaffLog notifyLog = new OrderPayResultNotifyByStaffLog();

            notifyLog.OrderId = orderId;
            result            = ResultNotify(operater, Enumeration.PayResultNotifyParty.Staff, notifyLog);
            return(result);
        }
        private CustomJsonResult Staff_ResultNotify(int operater, OrderPayResultNotifyByStaffLog notifyLog)
        {
            CustomJsonResult result = new CustomJsonResult();

            try
            {
                using (TransactionScope ts = new TransactionScope())
                {
                    var order = CurrentDb.Order.Where(m => m.Id == notifyLog.OrderId).FirstOrDefault();

                    if (order == null)
                    {
                        Log.Warn("订单找不到");
                        return(new CustomJsonResult(ResultType.Exception, ResultCode.Exception, "订单找不到"));
                    }

                    if (order != null)
                    {
                        notifyLog.Amount     = order.Price;
                        notifyLog.MerchantId = order.MerchantId;
                        notifyLog.UserId     = order.UserId;
                        notifyLog.OrderSn    = order.Sn;
                        notifyLog.CreateTime = this.DateTime;
                        notifyLog.Creator    = operater;

                        switch (order.Type)
                        {
                        case Enumeration.OrderType.PosMachineServiceFee:
                            result = PayServiceFeeCompleted(operater, order.Sn);
                            break;

                        case Enumeration.OrderType.InsureForCarForInsure:
                            result = PayCarInsureCompleted(operater, order.Sn);
                            break;

                        case Enumeration.OrderType.LllegalQueryRecharge:
                            result = PayLllegalQueryRechargeCompleted(operater, order.Sn);
                            break;

                        case Enumeration.OrderType.LllegalDealt:
                            result = PayLllegalDealtCompleted(operater, order.Sn);
                            break;
                        }


                        if (result.Result == Lumos.Mvc.ResultType.Success)
                        {
                            result.Data = notifyLog;
                        }
                    }

                    CurrentDb.OrderPayResultNotifyByStaffLog.Add(notifyLog);
                    CurrentDb.SaveChanges();

                    ts.Complete();
                }
            }
            catch (Exception ex)
            {
                Log.ErrorFormat("后台订单支付确认订单号({0})结果反馈发生异常,原因:{1}", notifyLog.OrderSn, ex.InnerException);

                result = new CustomJsonResult(ResultType.Exception, ResultCode.Exception, "支付失败");
            }

            return(result);
        }