增加全量范围字典查询

This commit is contained in:
mzl
2025-09-01 17:08:02 +08:00
parent b3d8029e6d
commit 7ded55ca0e
8 changed files with 54 additions and 630 deletions
+28
View File
@@ -74,8 +74,36 @@ class SysDictService
break;
case 'store':
break;
case 'scope':
$config['order']['id'] = 'desc';
if (isset($p['scope']) && !empty($p['scope'])) {
$config['where']['id'] = ['in', explode(',', $p['scope'])];
}
$config['with']['sysDictItem'][] = 'dict_id';
$config['with']['sysDictItem'][] = 'item_label';
$config['with']['sysDictItem'][] = 'item_value';
break;
}
return $config;
}
public function serviceListAllScope(Request $request)
{
$config = $this->buildQueryConfig($request, 'scope');
$result = $this->logicListAll($config);
return $this->postProcess('ListAllScope', $result);
}
public function afterServiceListAllScope($data)
{
// $data->each(function (&$item) {
// });
return $data;
}
}