/// <summary> /// 执行存储过程方法(采集进度部分) /// </summary> /// <param name="storedProcName"></param> /// <param name="lists"></param> /// <param name="tableName"></param> /// <returns></returns> public DataSet GetDataSetRunAcquisitionApi(string storedProcName, List <string> lists, string tableName) { DataSet ds = new DataSet(); try { IDataParameter[] iData = new MySqlParameter[lists.Count]; for (int i = 0; i < lists.Count; i++) { if (i == 0) { iData[i] = new MySqlParameter("@datatm", lists[i]); } else if (i == 1) { iData[i] = new MySqlParameter("@number3", lists[i]); } } ds = MySqlHelpers.RunProcedure(storedProcName, iData, tableName); } catch (Exception ex) { FileLog.WriteLog(ex.ToString()); } return(ds); }