cqpCow 9 meses atrás
pai
commit
927eca16b6
1 arquivos alterados com 1 adições e 0 exclusões
  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)