数据导入更新调试2

master
zcstatham 2 years ago
parent 9d7693967a
commit 34d36d542d
  1. 2
      extend/service/CarInfoHandle.php

@ -591,7 +591,7 @@ class CarInfoHandle
'update_timestamp' => $now
];
// 有效车架号且存在更新并清除状态
if (strlen($frame_no) == 17 && ($old = Db::name('car_info_t')->where('car_frame_no', $frame_no)->value('id'))) {
if (strlen($frame_no) == 17 && ($old = Db::name('car_info_t')->where('car_frame_no', $frame_no)->find())) {
foreach ($update_keys as $key) {
if (empty($row_array[$key]))
$row_array[$key] = $old[$key];

Loading…
Cancel
Save