|
|
@@ -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'] ?? '';
|