diff --git a/app/adminapi/lists/cost_project/CostProjectLists.php b/app/adminapi/lists/cost_project/CostProjectLists.php index 9aac3cd0f..eb4ab73fa 100644 --- a/app/adminapi/lists/cost_project/CostProjectLists.php +++ b/app/adminapi/lists/cost_project/CostProjectLists.php @@ -55,13 +55,7 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac */ public function lists(): array { - $startTime = $this->request->param('start_time', ''); - $endTime = $this->request->param('end_time', ''); return CostProject::where($this->searchWhere) - ->where(function ($query) use($startTime, $endTime) { - if ($startTime && $endTime) { - $query->whereTime('create_time', [$startTime, $endTime]); - }}) ->field(['id', 'project_num', 'project_name', 'contract_id', 'types', 'industry', 'province', 'city', 'address', 'starting', 'endtime', 'jhgq', 'depar', 'principal', 'person', 'invest', 'budget', 'cost', 'approval', 'aunit', 'Acontact', 'acontactnum', 'date', 'generalize', 'note', 'remark', 'annex']) ->limit($this->limitOffset, $this->limitLength) ->with(['contract'])