* Adjusted programplan ajaxGetAttribute function.

This commit is contained in:
shenshulong
2023-05-06 07:51:16 +00:00
parent 645c4f40dd
commit 0cba2a33a0
2 changed files with 26 additions and 8 deletions
+18
View File
@@ -1724,4 +1724,22 @@ class programplanModel extends model
return true;
}
/**
* 获取阶段ID的属性。
* Get stageID attribute.
*
* @param int $stageID
* @access public
* @return false|string
*/
public function getStageAttribute(int $stageID): false|string
{
$stageAttribute = $this->dao->select('attribute')->from(TABLE_EXECUTION)->where('id')->eq($stageID)->fetch('attribute');
if(dao::isError()) return false;
return $stageAttribute;
}
}