From 2f642831b8911e32af8441f934d98c1d3845aebc Mon Sep 17 00:00:00 2001 From: zcstatham <578322713@qq.com> Date: Mon, 29 Aug 2022 22:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=87=8D=E4=BB=BB=E5=8A=A1=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Task.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/controller/Task.php b/app/controller/Task.php index 44d33bd..ac90340 100644 --- a/app/controller/Task.php +++ b/app/controller/Task.php @@ -270,14 +270,7 @@ class Task extends BaseController return json($this->json_data); } if ($type == 3 || $type == 4) { - $where = []; - if($params['export_date1'] != ''){ - $where[] = ['car_info_t.register_date', '>=', $params['export_date1']]; - } - if($params['export_date2'] != ''){ - $where[] = ['car_info_t.register_date', '<=', $params['export_date2']]; - } - $count = CarInfoT::where($where)->count(); + $count = CarInfoT::count(); if ($count <= 0) { $this->json_data['code'] = 0; $this->json_data['msg'] = '当前待处理数据为空,请检查条件';