diff --git a/module/task/model.php b/module/task/model.php index 6531ab0bb3..8c7dfacc80 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -1721,16 +1721,18 @@ class taskModel extends model } /** + * 更新串行任务工时日志的排序。 * Update estimate order for linear task team. * * @param int $effortID * @param int $order * @access public - * @return void + * @return bool */ - public function updateEstimateOrder($effortID, $order) + public function updateEstimateOrder(int $effortID, int $order): bool { $this->dao->update(TABLE_EFFORT)->set('`order`')->eq((int)$order)->where('id')->eq($effortID)->exec(); + return !dao::isError(); } /**