code搜索

This commit is contained in:
2026-01-14 14:07:11 +08:00
parent 2a1c61df61
commit e3cce858dd
+1 -1
View File
@@ -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];
}
}