From 21600afe6b22186edcacc646e572044b79ed6b42 Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Thu, 1 Sep 2022 13:47:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E8=BD=A6=E6=9E=B6=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=A2=9E=E5=8A=A0=E5=88=9D=E7=99=BB=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=AF=94=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/CarInfoHandle.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extend/service/CarInfoHandle.php b/extend/service/CarInfoHandle.php index f39f077..a40df81 100644 --- a/extend/service/CarInfoHandle.php +++ b/extend/service/CarInfoHandle.php @@ -329,12 +329,12 @@ class CarInfoHandle $sources = []; break; } else if ($source_a['car_phone'] == $source['car_phone']) { - if ($source_a['insurer1_date'] != $source['insurer1_date'] && (trim($source_a['insurer1_date']) == '' || $source_a['insurer1_date'] < $source['insurer1_date'])) { + if (trim($source_a['insurer1_date']) != trim($source['insurer1_date']) && (trim($source_a['insurer1_date']) == '' || $source_a['insurer1_date'] < $source['insurer1_date'])) { list($source_a, $source) = [$source, $source_a]; $this->repeatDataHandle($source, $id, 'frame'); $delete_num ++; unset($sources[$index]); - } else if ($source_a['insurer2_date'] != $source['insurer2_date'] && (trim($source_a['insurer2_date']) == '' || $source_a['insurer2_date'] < $source['insurer2_date'])) { + } else if (trim($source_a['insurer2_date']) != trim($source['insurer2_date']) && (trim($source_a['insurer2_date']) == '' || $source_a['insurer2_date'] < $source['insurer2_date'])) { list($source_a, $source) = [$source, $source_a]; $this->repeatDataHandle($source, $id, 'frame'); $delete_num ++; @@ -344,6 +344,11 @@ class CarInfoHandle $this->repeatDataHandle($source, $id, 'frame'); $delete_num ++; unset($sources[$index]); + } else if ($source_a['register_date'] != $source['register_date'] && (trim($source_a['register_date']) == '' || $source_a['register_date'] < $source['register_date'])) { + list($source_a, $source) = [$source, $source_a]; + $this->repeatDataHandle($source, $id, 'frame'); + $delete_num ++; + unset($sources[$index]); } if (isset($sources[$index])) { $this->repeatDataHandle($source, $id, 'frame');