code搜索
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user