fix(userJournalService): 移除冗余的类型过滤条件
移除了不必要的Type参数过滤判断,简化用户日志列表查询逻辑
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user