From e7f11d22b847d480729dcd22f700b298bb197b3d Mon Sep 17 00:00:00 2001 From: Savorboard Date: Tue, 12 Nov 2019 17:28:18 +0800 Subject: [PATCH] Fixed mysql dashboard query bug --- src/DotNetCore.CAP.MySql/IMonitoringApi.MySql.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotNetCore.CAP.MySql/IMonitoringApi.MySql.cs b/src/DotNetCore.CAP.MySql/IMonitoringApi.MySql.cs index d626599..1e735b4 100644 --- a/src/DotNetCore.CAP.MySql/IMonitoringApi.MySql.cs +++ b/src/DotNetCore.CAP.MySql/IMonitoringApi.MySql.cs @@ -88,7 +88,7 @@ select count(Id) from `{0}.received` where StatusName = N'Failed';", _prefix); if (!string.IsNullOrEmpty(queryDto.Content)) { - where += " and Content like '%@Content%'"; + where += " and Content like CONCAT('%',@Content,'%')"; } var sqlQuery =