where('end_time', '<=', time()) ->where('status', '=', 1) ->where('is_delete', '=', 0) ->select(); } /** * 将砍价任务标记为已结束(批量) * @param $taskIds * @return false|int */ public function setIsEnd($taskIds) { return $this->isUpdate(true)->save([ 'status' => 0 ], ['task_id' => ['in', $taskIds]]); } }