车架重复处理调试5

master
zcstatham 2 years ago
parent c61ccf4bb5
commit 0635e4c36e
  1. 10
      extend/service/CarInfoHandle.php

@ -320,17 +320,17 @@ class CarInfoHandle
Db::startTrans(); Db::startTrans();
try { try {
foreach ($sources as $index => $source) { foreach ($sources as $index => $source) {
Log::record($index); echo $index.PHP_EOL;
if (empty(trim($source['car_phone']))) { if (empty(trim($source['car_phone']))) {
Log::record($source['id']); echo '开始循环'.PHP_EOL;
foreach ($sources as $source_data) { foreach ($sources as $source_data) {
Log::record($source_data['id']); echo '循环:'.$source_data['id'].PHP_EOL;
$this->repeatDataHandle($source_data, $id, 'frame'); $this->repeatDataHandle($source_data, $id, 'frame');
$delete_num ++; $delete_num ++;
} }
Log::record($source['id']); echo '循环over'.PHP_EOL;
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']); echo '循环over'.PHP_EOL;
$sources = []; $sources = [];
Log::record($source_data['id']); Log::record($source_data['id']);
break; break;

Loading…
Cancel
Save