增加全量范围字典查询
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user