From 73ad5a536ae25c752a7d964097db0b7d8e7121b8 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Sun, 10 Sep 2017 19:26:31 +0800 Subject: [PATCH] fixed query bug. --- src/DotNetCore.CAP.SqlServer/SqlServerMonitoringApi.cs | 2 +- src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotNetCore.CAP.SqlServer/SqlServerMonitoringApi.cs b/src/DotNetCore.CAP.SqlServer/SqlServerMonitoringApi.cs index 4959592..741ca39 100644 --- a/src/DotNetCore.CAP.SqlServer/SqlServerMonitoringApi.cs +++ b/src/DotNetCore.CAP.SqlServer/SqlServerMonitoringApi.cs @@ -94,7 +94,7 @@ _options.Schema); { where += " and name=@Name"; } - if (!string.IsNullOrEmpty(queryDto.Name)) + if (!string.IsNullOrEmpty(queryDto.Group)) { where += " and group=@Group"; } diff --git a/src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.cshtml b/src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.cshtml index 4467ba4..3d949b7 100644 --- a/src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.cshtml +++ b/src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.cshtml @@ -51,7 +51,7 @@
- +