cqpCow 1 год назад
Родитель
Сommit
927eca16b6
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/Service/ImportService.php

+ 1 - 0
app/Service/ImportService.php

@@ -742,6 +742,7 @@ class ImportService extends Service
         }
         if(empty($array)) return [false, '导入数据不能为空'];
         $search = rtrim($search,' or');
+        $search = "($search)";
         $model = Product::ProductClear($user,[]);
         $product = $model->whereRaw($search)
             ->where('del_time',0)