延長日報表 執行 SQL 時間: 720 秒
This commit is contained in:
parent
0325c7197e
commit
5c9e6e725a
@ -373,7 +373,7 @@ namespace solarApp.Service
|
|||||||
//int ct = conn.Execute(sql, new { date1 = _date1 });
|
//int ct = conn.Execute(sql, new { date1 = _date1 });
|
||||||
MySqlCommand cmd = new MySqlCommand();
|
MySqlCommand cmd = new MySqlCommand();
|
||||||
cmd.Connection = conn;
|
cmd.Connection = conn;
|
||||||
cmd.CommandTimeout = 360;
|
cmd.CommandTimeout = 720;
|
||||||
cmd.Parameters.AddWithValue("@date1", _date1);
|
cmd.Parameters.AddWithValue("@date1", _date1);
|
||||||
cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID);
|
cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID);
|
||||||
cmd.CommandText = sql;
|
cmd.CommandText = sql;
|
||||||
@ -458,7 +458,7 @@ namespace solarApp.Service
|
|||||||
// conn.Execute(sql, new { date1 = _date1, PowerStationID = _powerStationID });
|
// conn.Execute(sql, new { date1 = _date1, PowerStationID = _powerStationID });
|
||||||
MySqlCommand cmd = new MySqlCommand();
|
MySqlCommand cmd = new MySqlCommand();
|
||||||
cmd.Connection = conn;
|
cmd.Connection = conn;
|
||||||
cmd.CommandTimeout = 180;
|
cmd.CommandTimeout = 360;
|
||||||
cmd.Parameters.AddWithValue("@date1", _date1);
|
cmd.Parameters.AddWithValue("@date1", _date1);
|
||||||
cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID);
|
cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID);
|
||||||
cmd.CommandText = sql;
|
cmd.CommandText = sql;
|
||||||
@ -522,7 +522,7 @@ namespace solarApp.Service
|
|||||||
//conn.Execute(sql, new { date1 = _date1.Substring(0, 7), PowerStationID = _powerStationID });
|
//conn.Execute(sql, new { date1 = _date1.Substring(0, 7), PowerStationID = _powerStationID });
|
||||||
MySqlCommand cmd = new MySqlCommand();
|
MySqlCommand cmd = new MySqlCommand();
|
||||||
cmd.Connection = conn;
|
cmd.Connection = conn;
|
||||||
cmd.CommandTimeout = 180;
|
cmd.CommandTimeout = 360;
|
||||||
cmd.Parameters.AddWithValue("@date1", _date1.Substring(0, 7));
|
cmd.Parameters.AddWithValue("@date1", _date1.Substring(0, 7));
|
||||||
cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID);
|
cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID);
|
||||||
cmd.CommandText = sql;
|
cmd.CommandText = sql;
|
||||||
@ -594,7 +594,7 @@ ALTER TABLE `temp_invDay{_powerStationID}_s1` ADD INDEX `temp_indexs1` (report_d
|
|||||||
//conn.Execute(ss);
|
//conn.Execute(ss);
|
||||||
MySqlCommand cmd = new MySqlCommand();
|
MySqlCommand cmd = new MySqlCommand();
|
||||||
cmd.Connection = conn;
|
cmd.Connection = conn;
|
||||||
cmd.CommandTimeout = 360;
|
cmd.CommandTimeout = 720;
|
||||||
cmd.CommandText = sql;
|
cmd.CommandText = sql;
|
||||||
cmd.ExecuteNonQuery();
|
cmd.ExecuteNonQuery();
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user