* Fix weekly bug.

This commit is contained in:
孙广明
2022-03-13 15:08:54 +08:00
parent e56cf08647
commit 6a6af4e1a2
2 changed files with 13 additions and 9 deletions
+3 -1
View File
@@ -908,14 +908,16 @@ class programplanModel extends model
* Get milestone by product.
*
* @param int $productID
* @param int $projectID
* @access public
* @return object
*/
public function getMilestoneByProduct($productID)
public function getMilestoneByProduct($productID, $projectID)
{
return $this->dao->select('t1.id, t1.name')->from(TABLE_PROJECT)->alias('t1')
->leftJoin(TABLE_PROJECTPRODUCT)->alias('t2')->on('t1.id=t2.project')
->where('t2.product')->eq($productID)
->andWhere('t1.project')->eq($projectID)
->andWhere('t1.type')->eq('stage')
->andWhere('t1.milestone')->eq(1)
->andWhere('t1.deleted')->eq(0)