* replace ne() function to notIN().

This commit is contained in:
wangyidong
2019-09-05 16:00:04 +08:00
parent fd790da12c
commit c16eeefa33
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -176,8 +176,7 @@ class blockModel extends model
->fetch('count');
$data['stories'] = (int)$this->dao->select('count(*) AS count')->from(TABLE_STORY)->where('assignedTo')->eq($this->app->user->account)->andWhere('deleted')->eq(0)->fetch('count');
$data['projects'] = (int)$this->dao->select('count(*) AS count')->from(TABLE_PROJECT)
->where('status')->ne('done')
->andWhere('status')->ne('closed')
->where('status')->notIN('done,closed')
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->projects)->fi()
->andWhere('deleted')->eq(0)
->fetch('count');