|
|
@ -320,6 +320,7 @@ class CarInfoHandle |
|
|
|
Db::startTrans(); |
|
|
|
Db::startTrans(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
foreach ($sources as $index => $source) { |
|
|
|
foreach ($sources as $index => $source) { |
|
|
|
|
|
|
|
Log::record($index); |
|
|
|
if (empty(trim($source['car_phone']))) { |
|
|
|
if (empty(trim($source['car_phone']))) { |
|
|
|
Log::record($source['id']); |
|
|
|
Log::record($source['id']); |
|
|
|
foreach ($sources as $source_data) { |
|
|
|
foreach ($sources as $source_data) { |
|
|
@ -329,7 +330,9 @@ class CarInfoHandle |
|
|
|
} |
|
|
|
} |
|
|
|
Log::record($source['id']); |
|
|
|
Log::record($source['id']); |
|
|
|
RepeatFrameT::where('car_frame_no', $item->car_frame_no)->delete(); |
|
|
|
RepeatFrameT::where('car_frame_no', $item->car_frame_no)->delete(); |
|
|
|
|
|
|
|
Log::record($source_data['id']); |
|
|
|
$sources = []; |
|
|
|
$sources = []; |
|
|
|
|
|
|
|
Log::record($source_data['id']); |
|
|
|
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'])) { |
|
|
|