This commit is contained in:
2025-12-17 16:52:36 +08:00
parent 4f1486056f
commit 581ba7ee52
+6
View File
@@ -48,6 +48,12 @@ class SkuService
$config['order']['id'] = 'desc';
break;
case 'index':
if (isset($p['keyword']) && $p['keyword']) {
$k = '%' . $p['keyword'] . '%';
foreach (['product_name','model'] as $col) {
$config['orWhere'][] = [$col, 'like', $k];
}
}
$config['where']['status'] = 1;
$config['order']['sort'] = 'desc';
$config['order']['id'] = 'desc';