public JResult AddLoanPicture(CarLoanPicture model) { return _carervice.AddLoanPicture(model); }
/// <summary> /// 添加贷款图片 /// </summary> /// <param name="model"></param> /// <returns></returns> public int AddLoanPicture(CarLoanPicture model) { const string sql = @"INSERT INTO car_loan_picture (innerid, loanid, typeid, path, sort, createdtime) VALUES (uuid(), @loanid, @typeid, @path, @sort, @createdtime);"; try { Helper.Execute(sql, model); return 1; } catch (Exception ex) { return 0; } }