示例#1
0
 public bool Pay(int withdrawId, int status, int userId)
 {
     ColoPay.Model.Pay.BalanceDetail detailModel   = new Model.Pay.BalanceDetail();
     ColoPay.Model.Pay.Withdraw      withdrawModel = GetModel(withdrawId);
     if (withdrawModel != null)
     {
         detailModel.OrderAmount  = withdrawModel.Amount;
         detailModel.Amount       = withdrawModel.Amount;
         detailModel.PaymentFee   = 0;
         detailModel.OriginalId   = withdrawModel.WithdrawId;
         detailModel.OriginalCode = withdrawModel.WithdrawCode;
         detailModel.PayType      = 1;
         detailModel.EnterpriseID = withdrawModel.EnterpriseID;
         detailModel.CreatedTime  = DateTime.Now;
         withdrawModel.Status     = status + 1;
     }
     return(dal.Pay(withdrawModel, detailModel, userId));
 }
示例#2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(ColoPay.Model.Pay.Withdraw model)
 {
     return(dal.Update(model));
 }
示例#3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(ColoPay.Model.Pay.Withdraw model)
 {
     return(dal.Add(model));
 }
示例#4
0
 public bool AddWithdraw(ColoPay.Model.Pay.Withdraw withdrawModel)
 {
     return(dal.AddWithdraw(withdrawModel));
 }