From ea8c3aa3b548316ffedf4839824e5874f0e42e8a Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Tue, 16 Mar 2021 18:29:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Task.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/controller/Task.php b/app/controller/Task.php index 009295f..2e914c3 100644 --- a/app/controller/Task.php +++ b/app/controller/Task.php @@ -529,6 +529,21 @@ class Task extends BaseController $where[] = ['is_export_failed_bmc', '=', 0]; $where[] = ['is_export_none_bmc', '=', 0]; } + if ($params['export_type'] == 'success_bmc') { + $where[] = ['is_export_bhx', '>', 0]; + $where[] = ['is_update_bhx', '>', 0]; + $where[] = ['is_export_bmc', '>', 0]; + $insurer_date1 = $params['insurer_date1']??''; + $insurer_date2 = $params['insurer_date2']??''; + if($insurer_date1!=''){ + $map_or1[] = ['car_info_t.insurer1_date', '>=', $insurer_date1]; + $map_or2[] = ['car_info_t.insurer2_date', '>=', $insurer_date1]; + } + if($insurer_date2!=''){ + $map_or1[] = ['car_info_t.insurer1_date', '<=', $insurer_date2]; + $map_or2[] = ['car_info_t.insurer2_date', '<=', $insurer_date2]; + } + } } $insurer_month1 = $params['insurer_month1']??''; $insurer_day1 = $params['insurer_day1']??''; @@ -566,7 +581,7 @@ class Task extends BaseController } }); $this->json_data['data'] = $query->count(); - $this->json_data['sql'] = CarInfoT::getLastSql(); + $this->json_data['sql'] = CarInfoT::getLastSql(); return json($this->json_data); }