src/Leevel/Database/Condition.php
protected function aliatypeAndLogic(string $type, string $logic, $cond): self
    {
        $this->setTypeAndLogic($type, $logic);

        if ($cond instanceof Closure) {
            $select = new static($this->connect);
            $select->setTable($this->getTable());
            call_user_func_array($cond, [
                $select,
            ]);

            $tmp = $select->{'parse'.ucwords($type)}(true);
            $this->setConditionItem(static::LOGIC_GROUP_LEFT.$tmp.static::LOGIC_GROUP_RIGHT, ':string');

            return $this;
        }

        $args = func_get_args();
        array_shift($args);
        array_shift($args);

        return $this->addConditions(...$args);
    }
protected function aliatypeAndLogic(string $type, string $logic, $cond): self
    {
        $this->setTypeAndLogic($type, $logic);

        if ($cond instanceof Closure) {
            $select = new static($this->connect);
            $select->setTable($this->getTable());
            call_user_func_array($cond, [
                $select,
            ]);

            $tmp = $select->{'parse'.ucwords($type)}(true);
            $this->setConditionItem(static::LOGIC_GROUP_LEFT.$tmp.static::LOGIC_GROUP_RIGHT, ':string');

            return $this;
        }

        $args = func_get_args();
        array_shift($args);
        array_shift($args);

        return $this->addConditions(...$args);
    }
别名类型和逻辑.

@param string $type
@param string $logic
@param mixed  $cond

@return $this

@todo 代码复杂度过高，需要重构