diff --git a/repository/DouyinFollowRepository.cs b/repository/DouyinFollowRepository.cs index dca71d4..3e651b8 100644 --- a/repository/DouyinFollowRepository.cs +++ b/repository/DouyinFollowRepository.cs @@ -45,8 +45,8 @@ namespace dy.net.repository .Where(x => x.mySelfId == dto.MySelfId) .WhereIF(!string.IsNullOrWhiteSpace(dto.FollowUserName), x => x.UperName.Contains(dto.FollowUserName) || x.DouyinNo.Contains(dto.FollowUserName)) .WhereIF(dto.OpenSync, x => x.OpenSync) - .WhereIF(dto.FullSync, x => x.OpenSync && x.FullSync) - .WhereIF(!dto.OpenSync, x => !x.OpenSync && !x.FullSync); + .WhereIF(dto.FullSync, x => x.OpenSync && x.FullSync); + //.WhereIF(!dto.OpenSync, x => !x.OpenSync && !x.FullSync); var totalCount = await where.CountAsync(); var list = await where.OrderByDescending(x => x.OpenSync).OrderByDescending(x => x.LastSyncTime).Skip((dto.PageIndex - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync(); return (list, totalCount);