* fix zentao bot.

This commit is contained in:
Wenrui LI
2022-12-02 09:22:04 +08:00
parent 364eb8da6e
commit 0d15699df3
2 changed files with 47 additions and 30 deletions
+10 -10
View File
@@ -4353,15 +4353,15 @@ class taskModel extends model
public function getListByConds($conds, $orderBy = 'id_desc', $limit = 0, $pager = null)
{
return $this->dao->select('*')->from(TABLE_TASK)
->where('deleted')->eq(0)
->beginIF($conds->priList)->andWhere('pri')->in($conds->priList)->fi()
->beginIF($conds->assignedToList)->andWhere('assignedTo')->in($conds->assignedToList)->fi()
->beginIF($conds->statusList)->andWhere('status')->in($conds->statusList)->fi()
->beginIF($conds->idList)->andWhere('id')->in($conds->idList)->fi()
->beginIF($conds->taskName)->andWhere('name')->like("%{$conds->taskName}%")
->orderBy($orderBy)
->beginIF($limit > 0)->limit($limit)->fi()
->page($pager)
->fetchAll('id');
->where('deleted')->eq(0)
->beginIF($conds->priList)->andWhere('pri')->in($conds->priList)->fi()
->beginIF($conds->assignedToList)->andWhere('assignedTo')->in($conds->assignedToList)->fi()
->beginIF($conds->statusList)->andWhere('status')->in($conds->statusList)->fi()
->beginIF($conds->idList)->andWhere('id')->in($conds->idList)->fi()
->beginIF($conds->taskName)->andWhere('name')->like("%{$conds->taskName}%")
->orderBy($orderBy)
->beginIF($limit > 0)->limit($limit)->fi()
->page($pager)
->fetchAll('id');
}
}