src/Leevel/Database/Condition.php
public function one(): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->options['limitCount'] = 1;
        $this->options['limitOffset'] = null;
        $this->options['limitQuery'] = false;

        return $this;
    }
public function one(): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->options['limitCount'] = 1;
        $this->options['limitOffset'] = null;
        $this->options['limitQuery'] = false;

        return $this;
    }
指示仅查询第一个符合条件的记录.

@return $this