已认领筛选

This commit is contained in:
2025-10-30 15:24:05 +08:00
parent 88ebef4fc3
commit 499b0894b7
+6 -6
View File
@@ -65,11 +65,11 @@ class FinReceiptService
// 没有付款记录的收款记录 // 没有付款记录的收款记录
if (isset($p['payment_apply']) && $p['payment_apply'] == 'not') { //未认领 if (isset($p['payment_apply']) && $p['payment_apply'] == 'not') { //未认领
$config['where']['payment_apply_id'] = ['null']; $config['where']['payment_apply_id'] = 0;
} elseif (isset($p['payment_apply']) && $p['payment_apply'] == 'already') { //已认领 } elseif (isset($p['payment_apply']) && $p['payment_apply'] == 'already') { //已认领
$config['where']['payment_apply_id'] = ['not null']; $config['where']['payment_apply_id'] = ['>', 0];
} elseif (isset($p['payment_apply']) && $p['payment_apply'] == 'timeout') { //超时未认领 } elseif (isset($p['payment_apply']) && $p['payment_apply'] == 'timeout') { //超时未认领
$config['where']['payment_apply_id'] = ['not null']; $config['where']['payment_apply_id'] = 0;
$config['where']['created_at'] = ['<' ,time() - 24*60*60]; $config['where']['created_at'] = ['<' ,time() - 24*60*60];
} }
@@ -213,11 +213,11 @@ class FinReceiptService
// 没有付款记录的收款记录 // 没有付款记录的收款记录
if (isset($param['payment_apply']) && $param['payment_apply'] == 'not') { if (isset($param['payment_apply']) && $param['payment_apply'] == 'not') {
$query->whereNull('payment_apply_id'); $query->where('payment_apply_id', 0);
} elseif (isset($param['payment_apply']) && $param['payment_apply'] == 'already') { } elseif (isset($param['payment_apply']) && $param['payment_apply'] == 'already') {
$query->whereNotNull('payment_apply_id'); $query->where('payment_apply_id', '>', 0);
} elseif (isset($param['payment_apply']) && $param['payment_apply'] == 'timeout') { //超时未认领 } elseif (isset($param['payment_apply']) && $param['payment_apply'] == 'timeout') { //超时未认领
$query->whereNull('payment_apply_id'); $query->where('payment_apply_id', 0);
$query->where('created_at', '<' ,time() - 24*60*60); $query->where('created_at', '<' ,time() - 24*60*60);
} }