This commit is contained in:
weiz 2024-01-10 10:02:21 +08:00
parent 83f67d8be5
commit 5916949a3f

View File

@ -41,7 +41,7 @@ class CustomServiceLists extends BaseAdminDataLists implements ListsSearchInterf
public function setSearch(): array
{
return [
'=' => ['project_id', 'custom_id', 'classification', 'urgency', 'processing_result', 'processed_user'],
'=' => ['project_id', 'classification', 'urgency', 'processing_result', 'processed_user'],
'%like%' => ['name','receiver']
];
}
@ -58,7 +58,7 @@ class CustomServiceLists extends BaseAdminDataLists implements ListsSearchInterf
*/
public function lists(): array
{
$params = $this->request->get();
$params = $this->request->get(['custom_id']);
$where = [];
if(isset($params['custom_id']) && $params['custom_id'] != ''){
$project_ids = Project::where('custom_id',$params['custom_id'])->column('id');
@ -96,7 +96,7 @@ class CustomServiceLists extends BaseAdminDataLists implements ListsSearchInterf
*/
public function count(): int
{
$params = $this->request->get();
$params = $this->request->get(['custom_id']);
$where = [];
if(isset($params['custom_id']) && $params['custom_id'] != ''){
$project_ids = Project::where('custom_id',$params['custom_id'])->column('id');