CCN.Modules.Car.DataAccess.CarDataAccess.RecoveryCar C# (CSharp) Method

RecoveryCar() public method

回复车辆
public RecoveryCar ( CarInfoModel model ) : int
model CCN.Modules.Car.BusinessEntity.CarInfoModel 回复成交model
return int
        public int RecoveryCar(CarInfoModel model)
        {
            try
            {
                const string sql = "update car_info set `status`=ifnull(eval_price,1),eval_price=null,deletedesc=concat(ifnull(deletedesc,''),@deletedesc) where `innerid`=@innerid;";
                model.deletedesc = string.Concat("\n@", model.deletedesc);
                Helper.Execute(sql, new { innerid = model.Innerid, model.deletedesc });
            }
            catch (Exception ex)
            {
                return 0;
            }
            return 1;
        }
CarDataAccess