* Finish task #57871.

This commit is contained in:
zhouxudong
2022-06-20 08:17:44 +00:00
parent e2d00ec066
commit 64310b7dfb
+1 -2
View File
@@ -211,12 +211,11 @@ class productplanModel extends model
*/
public function getTopPlanPairs($productID, $branch = '', $exclude = '')
{
$statusList = array('done','closed');
$planPairs = $this->dao->select("id,title")->from(TABLE_PRODUCTPLAN)
->where('product')->eq($productID)
->beginIF($branch !== '')->andWhere('branch')->eq($branch)->fi()
->andWhere('parent')->le(0)
->andWhere('status')->notin($statusList)
->andWhere('status')->notin('done,closed')
->andWhere('deleted')->eq(0)
->orderBy('id_desc')
->fetchPairs();