* Code for task #92317.

This commit is contained in:
Yagami
2023-05-12 09:05:59 +08:00
parent 62c9846c3a
commit 89b743cbf5
7 changed files with 38 additions and 6 deletions
+5 -4
View File
@@ -368,10 +368,11 @@ class programplanModel extends model
if($project->model == 'ipd' and $datas)
{
$this->loadModel('review');
$reviewPoints = $this->dao->select('*')->from(TABLE_OBJECT)
->where('deleted')->eq('0')
->andWhere('project')->eq($projectID)
->beginIF($productID)->andWhere('product')->eq($productID)->fi()
$reviewPoints = $this->dao->select('t1.*, t2.status')->from(TABLE_OBJECT)->alias('t1')
->leftJoin(TABLE_REVIEW)->alias('t2')->on('t1.id = t2.object')
->where('t1.deleted')->eq('0')
->andWhere('t1.project')->eq($projectID)
->beginIF($productID)->andWhere('t1.product')->eq($productID)->fi()
->fetchAll('id');
foreach($datas['data'] as $plan)