合集 刮削优化

This commit is contained in:
jianzhichu
2026-02-12 17:29:22 +08:00
parent 9784114c90
commit cd24804273
4 changed files with 23 additions and 2 deletions
+1
View File
@@ -20,6 +20,7 @@ namespace dy.net.repository
{
var data = this.Db.Queryable<DouyinFollowed>()
.LeftJoin<DouyinCookie>((f, u) => f.mySelfId == u.MyUserId)
.Where((f,u)=>!string.IsNullOrEmpty(u.MyUserId)&&!string.IsNullOrEmpty(f.mySelfId))
//.Where((f, u) => u.Status == 1) // 注意:LeftJoin+u.Status==1 等价于 InnerJoinu必须存在)
.GroupBy((f, u) => f.mySelfId) // 按 mySelfId 分组
.Select((f, u) => new DouyinFollowGroupDto