where 闭包查询

$map1[] = ["like_article.user_id", 'not in', function ($query) use ($user_id) {
$query->name('like_community_report')
->where(['type' => 2, 'user_id' => $user_id])
->field('to_user_id');
}];
posted @ 2023-05-27 10:09  zlf2000  阅读(20)  评论(0编辑  收藏  举报