This commit is contained in:
2025-08-28 14:04:58 +08:00
parent 3bb2d93b83
commit 035450e762
10 changed files with 340 additions and 1 deletions
+7
View File
@@ -51,6 +51,13 @@ class SysDictItemService
if (isset($p['status']) && in_array($p['status'], [0,1])) {
$config['where']['status'] = $p['status'];
}
// 关键字
if (isset($p['keyword']) && $p['keyword']) {
$k = '%' . $p['keyword'] . '%';
foreach (['item_label','item_value','remark'] as $col) {
$config['orWhere'][] = [$col, 'like', $k];
}
}
break;
case 'show':
$config['where']['id'] = $p['id'];