* Refactor stakeholder::deleteExpect method.

This commit is contained in:
tianshujie
2023-12-22 10:51:11 +08:00
parent ff4ce1e994
commit a289469960
+6 -4
View File
@@ -502,16 +502,18 @@ class stakeholderModel extends model
}
/**
* Delete expect.
* 删除一个期望。
* Delete a expect.
*
* @param int $expectID
* @param object $null
* @access public
* @return void
* @return bool
*/
public function deleteExpect($expectID, $null = null)
public function deleteExpect(int $expectID): bool
{
$this->dao->update(TABLE_EXPECT)->set('deleted')->eq('1')->where('id')->eq($expectID)->exec();
return !dao::isError();
}
/**