* Don't change attribute when parent stage's attribute change to mix.

This commit is contained in:
hufangzhou
2023-02-08 14:07:32 +08:00
parent aa909099a4
commit a5a0316602
+3 -1
View File
@@ -1503,10 +1503,12 @@ class programplanModel extends model
* @param int $planID
* @param string $attribute
* @access public
* @return void
* @return bool
*/
public function updateSubStageAttr($planID, $attribute)
{
if($attribute == 'mix') return true;
$subStageList = $this->dao->select('id')->from(TABLE_EXECUTION)->where('parent')->eq($planID)->andWhere('deleted')->eq(0)->fetchAll('id');
$this->dao->update(TABLE_EXECUTION)->set('attribute')->eq($attribute)->where('id')->in(array_keys($subStageList))->exec();