From 9a121af7bd10ee7c0880459a48359271f432d17c Mon Sep 17 00:00:00 2001 From: wcg Date: Sun, 4 Jan 2026 11:31:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(rbac):=20=E6=B7=BB=E5=8A=A0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E5=BF=97=E6=A0=87=E9=A2=98=E6=A8=A1=E7=B3=8A?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/OperLog/OperationLogGetListInputVo.cs | 1 + .../Services/RecordLog/OperationLogService.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/OperLog/OperationLogGetListInputVo.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/OperLog/OperationLogGetListInputVo.cs index b2cb5f76..d657f53b 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/OperLog/OperationLogGetListInputVo.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/OperLog/OperationLogGetListInputVo.cs @@ -7,5 +7,6 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.OperLog { public OperEnum? OperType { get; set; } public string? OperUser { get; set; } + public string? Title { get; set; } } } diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/RecordLog/OperationLogService.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/RecordLog/OperationLogService.cs index 5f0ec9e9..17eed3ba 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/RecordLog/OperationLogService.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/RecordLog/OperationLogService.cs @@ -28,6 +28,7 @@ namespace Yi.Framework.Rbac.Application.Services.RecordLog // input.Sorting = $"{nameof(OperationLogEntity.CreationTime)} Desc"; var entities = await _repository._DbQueryable.WhereIF(!string.IsNullOrEmpty(input.OperUser), x => x.OperUser.Contains(input.OperUser!)) .WhereIF(input.OperType is not null, x => x.OperType == input.OperType) + .WhereIF(!string.IsNullOrEmpty(input.Title), x => x.Title.Contains(input.Title!)) .WhereIF(input.StartTime is not null && input.EndTime is not null, x => x.CreationTime >= input.StartTime && x.CreationTime <= input.EndTime) .OrderByDescending(it => it.CreationTime) //降序 .ToPageListAsync(input.SkipCount, input.MaxResultCount, total);