cqpCow 9 months ago
parent
commit
f745e026b0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Service/ImportService.php

+ 1 - 0
app/Service/ImportService.php

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