Arma el where in con or de la consulta
@param string $field
@param array $values
@param bool $not
172856
public function or_where_in($field, array $values, $not=FALSE){
        if($this->where != ''){$this->where.='OR ';}
        $this->in($field, $values, $not);
    }
455970
function notin($field,$ins)
    {
        if (is_array($ins))
        {
            $ins = implode(',', $ins);
        }
        else
        {
            //去掉两边的分号
            $ins = trim($ins, ',');
        }
        $this->where("`$field` NOT IN ({$ins})");
    }
1008518
protected function addWhereIn(string $key, array $values, bool $not = false): void
    {
        $placeholders = [];
        foreach ($values as $value) {
            $placeholder = $this->addBindingValue($key, $value);
            array_push($placeholders, $placeholder);
        }
        $placeholdersList = implode(',', $placeholders);
        $pattern = ($not === true) ? '%s NOT IN (%s)' : '%s IN (%s)';

        $key = $this->quoteName($key);
        $this->statement .= sprintf($pattern, $key, $placeholdersList);
        $this->statement .= PHP_EOL;
    }
207828
public function whereBetween($column, array $values, $boolean = 'and', $not = false)
    {
        $type = 'between';

        $this->wheres[] = compact('type', 'column', 'values', 'boolean', 'not');

        $this->addBinding($this->cleanBindings($values), 'where');

        return $this;
    }
952155
public function findWhereNotIn($field, array $values, $columns = ['*'])
    {
        $this->applyCriteria();
        $this->applyScope();
        $model = $this->model->whereNotIn($field, $values)->get($columns);
        $this->resetModel();

        return $this->parserResult($model);
    }
1263953
public function whereNotBetween($column, array $values, $boolean = 'and')
    {
        return $this->whereBetween($column, $values, $boolean, true);
    }
264912
public function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
    {
        $type = $not ? 'NotInRaw' : 'InRaw';

        if ($values instanceof Arrayable) {
            $values = $values->toArray();
        }

        foreach ($values as &$value) {
            $value = (int) $value;
        }

        $this->wheres[] = compact('type', 'column', 'values', 'boolean');

        return $this;
    }
506244
public function notMatch($field, $value)
    {
        if(!$value instanceof Expr\ConditionalExpression) {
            $value = $this->buildPart($value);
        }
        return new Expr\TextComparisonExpression($field, $value, Expr\TextComparisonExpression::NOT_MATCH);
    }
747408
public static Query notIn(String field, Collection<?> values) {
        return new Query().notIn(field, values);
    }
460857
public function addExclude($field, $values)
    {
        $excludes = isset($this->exclude[$field]) ? $this->exclude[$field] : [];
        $values = is_array($values) ? $values : [$values];
        $this->exclude[$field] = array_merge($excludes, $values);
        return $this;
    }
395901
public function assertSelectMissingOptions($field, array $values)
    {
        PHPUnit::assertCount(
            0, $this->resolver->resolveSelectOptions($field, $values),
            'Unexpected options ['.implode(',', $values)."] for selection field [{$field}]."
        );

        return $this;
    }
208289
public function whereNotIn($attribute, $values, $boolean = 'and')
    {
        // The last `$boolean` expression is intentional to fix list() & array_pad() results
        $this->whereNotIn[] = [$attribute, $values, $boolean ?: 'and'];

        return $this;
    }
8095
protected function buildIn($field, array $values, $isIn)
    {
        $operator = $isIn ? ' IN ' : ' NOT IN ';

        return $field.$operator.$this->parameterizeValues($values);
    }
775068
public function whereIn($field, $values)
    {
        $list = array_map(function ($value) {
            return compact('value');
        }, $values);

        $this->condition[] = [
            'field' => compact('field'),
            'op' => '=',
            'value' => compact('list')
        ];

        return $this;
    }
110319
public function orderField($field, array $values = [], $order = '')
    {
        if (!empty($values)) {
            $values['sort'] = $order;

            $this->options['order'][$field] = $values;
        }

        return $this;
    }
985446
public function whereNe($field = '', $x)
		{
			$this->_whereInit($field);
			$this->wheres[$field]['$ne'] = $x;

			return $this;
		}
561752
protected function like($field, $match, $joker='both', $not=FALSE){
        $this->where.= $field . ' ';
        if($not){$this->where.= 'NOT ';}
        $this->where.= 'LIKE ';
        switch ($joker){
            case 'both':
                 $this->where.= "'%$match%' ";
                break;
            case 'after':
                 $this->where.= "'$match%' ";
                break;
            case 'before':
                 $this->where.= "'%$match' ";
                break;
        }
    }