Fix bug#1043 每日提醒功能会提示暂停项目中的任务

This commit is contained in:
wangyidong
2017-04-24 09:34:53 +08:00
parent 24fdb413be
commit d3607062b3
+4 -4
View File
@@ -369,14 +369,14 @@ class reportModel extends model
*/
public function getUserTasks()
{
$tasks = $this->dao->select('t1.id, t1.name, t2.account as user')
->from(TABLE_TASK)->alias('t1')
->leftJoin(TABLE_USER)->alias('t2')
->on('t1.assignedTo = t2.account')
$tasks = $this->dao->select('t1.id, t1.name, t2.account as user')->from(TABLE_TASK)->alias('t1')
->leftJoin(TABLE_USER)->alias('t2')->on('t1.assignedTo = t2.account')
->leftJoin(TABLE_PROJECT)->alias('t3')->on('t1.project = t3.id')
->where('t1.assignedTo')->ne('')
->andWhere('t1.deleted')->eq(0)
->andWhere('t2.deleted')->eq(0)
->andWhere('t1.status')->in('wait, doing')
->andWhere('t3.status')->ne('suspended')
->fetchGroup('user');
return $tasks;