|
|
@@ -68,8 +68,12 @@ class OrderService extends BaseService
|
|
|
$list = $model->where(function ($query) use ($params) {
|
|
|
$status = isset($params['status']) ? $params['status'] : 0;
|
|
|
// 进行中
|
|
|
- if ($status > 0 && is_array($status)) {
|
|
|
+ if ($status == 9) {
|
|
|
+ $query->where('a.refund_status', '>', 0);
|
|
|
+ }elseif ($status > 0 && is_array($status)) {
|
|
|
$query->whereIn('a.status', $status);
|
|
|
+ } else if ($status == 4) {
|
|
|
+ $query->where('a.status', $status)->where('a.refund_status', 0);
|
|
|
} else if ($status > 0) {
|
|
|
$query->where('a.status', $status);
|
|
|
}
|