예제 #1
0
        /// <summary>
        /// 完成提现转账
        /// </summary>
        public ActionResult EditDraw(int drawId, string exception, string type)
        {
            List <DrawInfoModel> listdraw = Recharge.GetDrawList(1, 15, " where drawid=" + drawId);
            DrawInfoModel        draw     = new DrawInfoModel();

            if (listdraw.Count > 0)
            {
                draw = listdraw[0];
            }
            else
            {
                return(AjaxResult("error", "提现信息不存在"));
            }

            if (type == "2")
            {
                //完成
                draw.Updateuser = WorkContext.UserName;
                if (exception == "")
                {
                    draw.State = "2";
                }
                else
                {
                    draw.State = "3";
                }
                draw.Exception = exception;
            }
            else if (type == "1")
            {
                //审核中
                draw.Exception  = "";
                draw.Updateuser = WorkContext.UserName;
                draw.State      = "1";
            }
            bool result = Recharge.UpdateDraw(draw);

            if (result)
            {
                return(AjaxResult("success", "处理成功"));
            }
            else
            {
                return(AjaxResult("error", "处理失败"));
            }
        }