update:更新whereLike查询

This commit is contained in:
JaguarJack 2020-09-16 10:07:34 +08:00
parent c74c3c23d4
commit 42ffcb75c7

View File

@ -159,7 +159,11 @@ class CatchQuery extends Query
$condition .= '%';
}
return parent::whereLike($this->getAlias() . '.' . $field, $condition, $logic);
if (strpos($field, '.') === false) {
$field = $this->getAlias() . '.' . $field;
}
return parent::whereLike($field, $condition, $logic);
}
/**