待入账列表

This commit is contained in:
2025-11-01 08:56:48 +08:00
parent 29ba35f9b6
commit f7faf79809
4 changed files with 45 additions and 6 deletions
+9
View File
@@ -62,4 +62,13 @@ class FinPaymentApply extends Model
{
return $this->belongsToMany(StockOrders::class, 'fin_payment_stock', 'payment_apply_id', 'stock_id');
}
/**
* 查询 submit_files 不为空的记录
*/
public function scopeWithNonEmptyFiles($query)
{
return $query->whereNotNull('submit_files')
->whereRaw('JSON_LENGTH(submit_files) > 0');
}
}