瀏覽代碼

Fixed SQL content filter on IMonitoringApi.PostgreSql.cs

master
Mateus Viegas 3 年之前
父節點
當前提交
e10658063e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/DotNetCore.CAP.PostgreSql/IMonitoringApi.PostgreSql.cs

+ 1
- 1
src/DotNetCore.CAP.PostgreSql/IMonitoringApi.PostgreSql.cs 查看文件

@@ -81,7 +81,7 @@ namespace DotNetCore.CAP.PostgreSql

if (!string.IsNullOrEmpty(queryDto.Group)) where += " and Lower(\"Group\") = Lower(@Group)";

if (!string.IsNullOrEmpty(queryDto.Content)) where += " and \"Content\" ILike concat('%',@Content,'%')";
if (!string.IsNullOrEmpty(queryDto.Content)) where += " and \"Content\" ILike @Content";

var sqlQuery =
$"select * from {tableName} where 1=1 {where} order by \"Added\" desc offset @Offset limit @Limit";


Loading…
取消
儲存