diff --git a/app/common/service/UsedCarService.php b/app/common/service/UsedCarService.php index 3d3dc66..0873d2b 100644 --- a/app/common/service/UsedCarService.php +++ b/app/common/service/UsedCarService.php @@ -60,7 +60,7 @@ class UsedCarService // 关键字 if (isset($p['keyword']) && $p['keyword']) { $k = '%' . $p['keyword'] . '%'; - foreach (['product_name'] as $col) { + foreach (['product_name','code'] as $col) { $config['orWhere'][] = [$col, 'like', $k]; } }