* Finish task #7123.

This commit is contained in:
Yagami
2020-05-07 11:29:42 +08:00
parent ef44299d7e
commit 9c7b057c43
7 changed files with 47 additions and 12 deletions
+4
View File
@@ -9,6 +9,10 @@ class programModel extends model
->andWhere('deleted')->eq(0)
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->projects)->fi()
->beginIF($status != 'all')->andWhere('status')->eq($status)->fi()
->beginIF($this->cookie->mine)
->andWhere('openedBy')->eq($this->app->user->account)
->orWhere('PM')->eq($this->app->user->account)
->fi()
->orderBy($orderBy)
->page($pager)
->fetchAll('id');