|
@@ -188,7 +188,8 @@ class OrderService
|
|
|
}
|
|
}
|
|
|
if ($soreference5){
|
|
if ($soreference5){
|
|
|
$soreference5 = str_replace("'",'"',$soreference5);
|
|
$soreference5 = str_replace("'",'"',$soreference5);
|
|
|
- $arr=array_values(array_filter(preg_split('/[,, ]+/is', $soreference5)));
|
|
|
|
|
|
|
+ mb_regex_encoding('utf-8');
|
|
|
|
|
+ $arr=array_values(array_filter(preg_split('/[,, ]+/u', $soreference5,-1,PREG_SPLIT_NO_EMPTY)));
|
|
|
if (count($arr)>0){
|
|
if (count($arr)>0){
|
|
|
$sql.=" and (soreference5 in (";
|
|
$sql.=" and (soreference5 in (";
|
|
|
foreach ($arr as $index=>$str){
|
|
foreach ($arr as $index=>$str){
|
|
@@ -348,7 +349,6 @@ class OrderService
|
|
|
$params['soreference']='';
|
|
$params['soreference']='';
|
|
|
$sql = $this->getSql($params,$params['page'] ?? 1, $params['paginate'] ?? 50);
|
|
$sql = $this->getSql($params,$params['page'] ?? 1, $params['paginate'] ?? 50);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if ($sql)$orders=DB::connection('oracle')->select(DB::raw($sql));
|
|
if ($sql)$orders=DB::connection('oracle')->select(DB::raw($sql));
|
|
|
else $orders = [];
|
|
else $orders = [];
|
|
|
return $this->orderFormat($orders);
|
|
return $this->orderFormat($orders);
|