|
...
|
...
|
@@ -55,9 +55,9 @@ class ProjectAssociation extends Model |
|
|
|
{
|
|
|
|
$status = 1; # 1 - 正常, 0 - 禁用
|
|
|
|
$lists = self::query()->where('status', $status)
|
|
|
|
->whereNotNull('project_id')
|
|
|
|
->whereNotNull('friend_id')
|
|
|
|
->whereNotNull('user_id')
|
|
|
|
->where('project_id', '!=', 0)
|
|
|
|
->where('friend_id', '!=', 0)
|
|
|
|
->where('user_id', '!=', 0)
|
|
|
|
->paginate($perPage, ['project_id', 'friend_id', 'user_id'], 'page', $page);
|
|
|
|
$items = $lists->Items();
|
|
|
|
$totalPage = $lists->lastPage();
|
...
|
...
|
|