|
@@ -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')
|