|
|
|
@ -626,13 +626,15 @@ class CarInfoHandle |
|
|
|
|
$row_array['is_export_failed'] = 0; |
|
|
|
|
$row_array['is_export_none_bmc'] = 0; |
|
|
|
|
$row_array['is_export_failed_bmc'] = 0; |
|
|
|
|
Db::name('car_info_t')->where('id', $id)->save($row_array); |
|
|
|
|
Db::name('car_info_t')->where('id', $old['id'])->save($row_array); |
|
|
|
|
} else { |
|
|
|
|
Db::name('car_info_t')->insert($row_array); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cache('shell_process_' . $id, round(($row - 1) / $highestRow * 100, 3), 300); |
|
|
|
|
echo '当前进度:' . round(round(($row - 1) / $highestRow * 100, 3)) . PHP_EOL; |
|
|
|
|
$process = round($row / $highestRow * 100, 3); |
|
|
|
|
$process = $process > 100 ? 100: $process; |
|
|
|
|
cache('shell_process_' . $id, $process, 300); |
|
|
|
|
echo '当前进度:' . $process . PHP_EOL; |
|
|
|
|
} |
|
|
|
|
Db::execute('ALTER TABLE car_info_t ENABLE KEYS;'); |
|
|
|
|
$t2 = microtime(true); |
|
|
|
|