重复车架处理调试14

master
zcstatham 2 years ago
parent 279ccd522c
commit 67ebda3400
  1. 10
      extend/service/CarInfoHandle.php

@ -652,7 +652,7 @@ class CarInfoHandle
FileSystem::appendWriteFile($filename, $content, false); FileSystem::appendWriteFile($filename, $content, false);
if($export_limit != 0 && $export_type == 'success_bmc'){ if($export_limit != 0 && $export_type == 'success_bmc'){
CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]); CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]);
} else if($export_limit != 0 && $export_type == 'repeat_delete') { } else if($export_limit != 0 && $export_type != 'repeat_delete') {
CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]); CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]);
} }
} else { } else {
@ -672,7 +672,7 @@ class CarInfoHandle
FileSystem::appendWriteFile($filename, $content, false); FileSystem::appendWriteFile($filename, $content, false);
if($export_limit != 0 && $export_type == 'success_bmc'){ if($export_limit != 0 && $export_type == 'success_bmc'){
CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]); CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]);
} else if($export_limit != 0 && $export_type == 'repeat_delete') { } else if($export_limit != 0 && $export_type != 'repeat_delete') {
CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]); CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]);
} }
$limit -= 3000; $limit -= 3000;
@ -708,9 +708,9 @@ class CarInfoHandle
} }
$this->setProcess($row, $count * 1.2, $id); $this->setProcess($row, $count * 1.2, $id);
} }
if($export_limit != 0 && $export_type == 'success_bmc'){ if($export_limit != 0 && $export_type == 'success_bmc') {
CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]); CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]);
} else if($export_limit != 0 && $export_type == 'repeat_delete') { } else if($export_limit != 0 && $export_type != 'repeat_delete') {
CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]); CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]);
} }
} else { } else {
@ -728,7 +728,7 @@ class CarInfoHandle
} }
if($export_limit != 0 && $export_type == 'success_bmc'){ if($export_limit != 0 && $export_type == 'success_bmc'){
CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]); CarInfoT::where('id', 'in', $ids)->update(['is_export_bmc' => 0]);
} else if($export_limit != 0 && $export_type == 'repeat_delete') { } else if($export_limit != 0 && $export_type != 'repeat_delete') {
CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]); CarInfoT::where('id', 'in', $ids)->update(['is_export_' . $export_type => $id]);
} }
$limit -= 3000; $limit -= 3000;

Loading…
Cancel
Save