yingzi 1 year ago
parent
commit
31779ee3f6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Controller/Purchase/Purchase.Class.php

+ 4 - 0
Controller/Purchase/Purchase.Class.php

@@ -470,6 +470,10 @@ class Purchase extends BaseController
             'offset' => $offset,
         ];
         $export = isset($params['export']) ? $params['export'] : 0;
+        
+        if(!empty($this->shopId)){
+            $selectParams["shopId"] = $this->shopId;
+        }
 
         $orderData = $this->objMPurchase->getAllPurchaseDetails($selectParams, $export);