改进查询

This commit is contained in:
thinkphp
2018-05-07 22:29:32 +08:00
parent 2a438cd4b4
commit ac0a9721ef

View File

@@ -268,7 +268,7 @@ abstract class Builder
$str = [];
foreach ($val as $field => $value) {
if ($value instanceof Expression) {
$str[] = ' ' . $key . ' ( ' . $value->getValue() . ' )';
$str[] = ' ' . $key . ' ( ' . $field . ' ' . $value->getValue() . ' )';
continue;
}
if ($value instanceof \Closure) {