master
wangxinglong 2022-08-09 14:00:46 +08:00
parent 2d71d9e498
commit 49564e5678
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class SpuRepository extends Repository
$whereMap[] = ['saleable', '=', $params['saleable']]; $whereMap[] = ['saleable', '=', $params['saleable']];
} }
if (isset($params['keyword']) && !empty(trim($params['keyword']))) { if (isset($params['keyword']) && !empty($params['keyword'])) {
$whereMap[] = ['name|subtitle', 'like', '%'.trim($params['keyword']).'%']; $whereMap[] = ['name|subtitle', 'like', '%'.trim($params['keyword']).'%'];
} }