* Refactor stage::getByID method.

This commit is contained in:
tianshujie
2023-12-18 15:35:35 +08:00
parent 0ad0d6cdf2
commit ecf7ac72f8
+5 -4
View File
@@ -179,13 +179,14 @@ class stageModel extends model
}
/**
* Get a stage by id.
* 通过ID获取阶段信息。
* Get stage info by ID.
*
* @param int $stageID
* @param int $stageID
* @access public
* @return object
* @return object|bool
*/
public function getByID($stageID)
public function getByID(int $stageID): object|bool
{
return $this->dao->select('*')->from(TABLE_STAGE)->where('deleted')->eq(0)->andWhere('id')->eq((int)$stageID)->fetch();
}