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)); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(ColoPay.Model.Pay.Withdraw model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(ColoPay.Model.Pay.Withdraw model) { return(dal.Add(model)); }
public bool AddWithdraw(ColoPay.Model.Pay.Withdraw withdrawModel) { return(dal.AddWithdraw(withdrawModel)); }