Think/Model/MergeModel.php
protected function checkCondition(array $where = [])
    {
        if (is_array($where)) {
            $view = [];
            foreach ($where as $name => $value) {
                if (array_key_exists($name, $this->mapFields)) {
                    // 需要处理映射字段
                    $view[$this->mapFields[$name]] = $value;
                    unset($where[$name]);
                }
            }
            $where = array_merge($where, $view);
        }

        return $where;
    }
protected function checkCondition(array $where = [])
    {
        if (is_array($where)) {
            $view = [];
            foreach ($where as $name => $value) {
                if (array_key_exists($name, $this->mapFields)) {
                    // 需要处理映射字段
                    $view[$this->mapFields[$name]] = $value;
                    unset($where[$name]);
                }
            }
            $where = array_merge($where, $view);
        }

        return $where;
    }
检查条件中的聚合字段


@param array $where

@return array
@internal param mixed $data 条件表达式