|
|
@ -321,13 +321,15 @@ class CarInfoHandle |
|
|
|
try { |
|
|
|
try { |
|
|
|
foreach ($sources as $index => $source) { |
|
|
|
foreach ($sources as $index => $source) { |
|
|
|
if (empty(trim($source['car_phone']))) { |
|
|
|
if (empty(trim($source['car_phone']))) { |
|
|
|
|
|
|
|
Log::record($source['id']); |
|
|
|
foreach ($sources as $source_data) { |
|
|
|
foreach ($sources as $source_data) { |
|
|
|
|
|
|
|
Log::record($source_data['id']); |
|
|
|
$this->repeatDataHandle($source_data, $id, 'frame'); |
|
|
|
$this->repeatDataHandle($source_data, $id, 'frame'); |
|
|
|
$delete_num ++; |
|
|
|
$delete_num ++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Log::record($source['id']); |
|
|
|
RepeatFrameT::where('car_frame_no', $item->car_frame_no)->delete(); |
|
|
|
RepeatFrameT::where('car_frame_no', $item->car_frame_no)->delete(); |
|
|
|
$sources = []; |
|
|
|
$sources = []; |
|
|
|
Db::commit(); |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} else if ($source_a['car_phone'] == $source['car_phone']) { |
|
|
|
} else if ($source_a['car_phone'] == $source['car_phone']) { |
|
|
|
if (trim($source_a['insurer1_date']) != trim($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'])) { |
|
|
@ -401,6 +403,7 @@ class CarInfoHandle |
|
|
|
$faild_num++; |
|
|
|
$faild_num++; |
|
|
|
Db::rollback(); |
|
|
|
Db::rollback(); |
|
|
|
Log::record($e->getMessage(), 'error'); |
|
|
|
Log::record($e->getMessage(), 'error'); |
|
|
|
|
|
|
|
exit(); |
|
|
|
} |
|
|
|
} |
|
|
|
$current++; |
|
|
|
$current++; |
|
|
|
} |
|
|
|
} |
|
|
|