public static int SaveQZTJSingle(QZTJModel model) { using (var dbHelper = new SqlDbHelper(ConnectionHelper.GetDecryptConn("Gungnir"))) { var result = -99; dbHelper.BeginTransaction(); //删 DeleteQZTJByPID(model.PID); foreach (var item in model.Products) { //插入 result = InsertQZTJ(dbHelper, item, model.PID); if (result <= 0) { dbHelper.Rollback(); } } dbHelper.Commit(); return(result); } }
public static int SaveQZTJSingle(QZTJModel model) => DALRecommendTire.SaveQZTJSingle(model);