fix(userJournalService): 移除冗余的类型过滤条件

移除了不必要的Type参数过滤判断,简化用户日志列表查询逻辑
This commit is contained in:
glz
2026-07-02 14:28:39 +08:00
parent 72c7a38f1d
commit 519428c52d

View File

@ -510,7 +510,6 @@ public class UserJournalService(
RefAsync<int> totalNumber = 0;
var pageResult = await userJournalRepository.Queryable()
.Where(uj => uj.UserId == userId)
.WhereIF(!string.IsNullOrWhiteSpace(input.Type), uj => uj.Type.ToString() == input.Type)
.OrderByDescending(uj => uj.CreatedAt)
.Select(uj => new BindJournalOutput
{