|
@@ -42,7 +42,9 @@ class PayDetailController extends Curd
|
|
|
$payIds = PayDetail::whereJsonContains('pay_extend_json->remark->premises_id', intval($request->get('premises_id')))
|
|
|
->pluck('pay_id')
|
|
|
->toArray();
|
|
|
- $where['pay_id'] = ['in', $payIds];
|
|
|
+ if (!empty($payIds)) {
|
|
|
+ $where['pay_id'] = ['in', $payIds];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// else if ($where['pay_category'] == 'RECHARGE') {
|