From 5c9e6e725a6d87fe56467db66da5dfca24f7df4c Mon Sep 17 00:00:00 2001 From: JiaHao Liu Date: Tue, 25 Jan 2022 12:17:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E9=95=B7=E6=97=A5=E5=A0=B1=E8=A1=A8?= =?UTF-8?q?=20=E5=9F=B7=E8=A1=8C=20SQL=20=E6=99=82=E9=96=93=EF=BC=9A=20720?= =?UTF-8?q?=20=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solarApp/Service/procInvSvc.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solarApp/Service/procInvSvc.cs b/solarApp/Service/procInvSvc.cs index d0ba854..a1fbb9e 100644 --- a/solarApp/Service/procInvSvc.cs +++ b/solarApp/Service/procInvSvc.cs @@ -373,7 +373,7 @@ namespace solarApp.Service //int ct = conn.Execute(sql, new { date1 = _date1 }); MySqlCommand cmd = new MySqlCommand(); cmd.Connection = conn; - cmd.CommandTimeout = 360; + cmd.CommandTimeout = 720; cmd.Parameters.AddWithValue("@date1", _date1); cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID); cmd.CommandText = sql; @@ -458,7 +458,7 @@ namespace solarApp.Service // conn.Execute(sql, new { date1 = _date1, PowerStationID = _powerStationID }); MySqlCommand cmd = new MySqlCommand(); cmd.Connection = conn; - cmd.CommandTimeout = 180; + cmd.CommandTimeout = 360; cmd.Parameters.AddWithValue("@date1", _date1); cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID); cmd.CommandText = sql; @@ -522,7 +522,7 @@ namespace solarApp.Service //conn.Execute(sql, new { date1 = _date1.Substring(0, 7), PowerStationID = _powerStationID }); MySqlCommand cmd = new MySqlCommand(); cmd.Connection = conn; - cmd.CommandTimeout = 180; + cmd.CommandTimeout = 360; cmd.Parameters.AddWithValue("@date1", _date1.Substring(0, 7)); cmd.Parameters.AddWithValue("@PowerStationID", _powerStationID); cmd.CommandText = sql; @@ -594,7 +594,7 @@ ALTER TABLE `temp_invDay{_powerStationID}_s1` ADD INDEX `temp_indexs1` (report_d //conn.Execute(ss); MySqlCommand cmd = new MySqlCommand(); cmd.Connection = conn; - cmd.CommandTimeout = 360; + cmd.CommandTimeout = 720; cmd.CommandText = sql; cmd.ExecuteNonQuery(); #endregion