车架重复处理调试5

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

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

Loading…
Cancel
Save