shish пре 1 година
родитељ
комит
18454c6ca5
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      app-hd/controllers/OrderController.php

+ 10 - 0
app-hd/controllers/OrderController.php

@@ -929,6 +929,16 @@ class OrderController extends BaseController
         }
         $where = [];
         $where['shopId'] = $shopId;
+
+        if (!empty($get['customId'])) {
+            $where['customId'] = $get['customId'];
+        }
+        if (!empty($get['ids'])) {
+            $stringIds = $get['ids'];
+            $newIds = explode(',', $stringIds);
+            $where['id'] = ['in', $newIds];
+        }
+
         $status = $get['status'] ?? 0;
         if (!empty($status)) {
             $where['status'] = $get['status'];