diff --git a/SolarPower/Repository/Implement/PowerStationRepository.cs b/SolarPower/Repository/Implement/PowerStationRepository.cs index 13dc5ad..d56dbc4 100644 --- a/SolarPower/Repository/Implement/PowerStationRepository.cs +++ b/SolarPower/Repository/Implement/PowerStationRepository.cs @@ -5996,7 +5996,7 @@ namespace SolarPower.Repository.Implement try { // var sql = $@"SHOW INDEX from '{dbname}'.s{code}01_station where column_name <> 'ID';"; - var sql = $@"SELECT COUNT(1) index_count --, TABLE_NAME, GROUP_CONCAT(DISTINCT(index_name) SEPARATOR ',\n ') indexes + var sql = $@"SELECT COUNT(1) index_count -- , TABLE_NAME, GROUP_CONCAT(DISTINCT(index_name) SEPARATOR ',\n ') indexes FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA = '{dbname}' and table_name = 's{code}01_station' AND INDEX_NAME != 'primary' diff --git a/SolarPower/Startup.cs b/SolarPower/Startup.cs index ef4e04d..8b0ba21 100644 --- a/SolarPower/Startup.cs +++ b/SolarPower/Startup.cs @@ -87,7 +87,6 @@ namespace SolarPower { options.IdleTimeout = TimeSpan.FromMinutes(loginExpireMinute); }); - services.AddApplicationInsightsTelemetry(); #region ¥[¤J­I´º°õ¦æ //services.AddHostedService();