shish 2 anni fa
parent
commit
cfc87c528b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      app-ghs/controllers/RefundController.php

+ 4 - 0
app-ghs/controllers/RefundController.php

@@ -184,6 +184,7 @@ class RefundController extends BaseController
         $where = [];
         $where['mainId'] = $this->mainId;
         $status = $get['status'] ?? 0;
+        $cause = $get['cause'] ?? -1;
         if ($status == 1) {
             $where['status'] = $status;
         }
@@ -200,6 +201,9 @@ class RefundController extends BaseController
             }
             $where['productId'] = ['in', $productIds];
         }
+        if ($cause > -1) {
+            $where['cause'] = $cause;
+        }
 
         $searchTime = isset($get['searchTime']) && !empty($get['searchTime']) ? $get['searchTime'] : 'today';
         $startTime = $get['startTime'] ?? '';