This commit is contained in:
weiz 2024-01-12 17:50:29 +08:00
parent 30b01be381
commit 64ee036e85

View File

@ -94,11 +94,7 @@ class FinanceReceiptRecordLists extends BaseAdminDataLists implements ListsSearc
*/
public function count(): int
{
return Db::name('FinanceReceiptRecord')->alias('frr')
->where($this->searchWhere)
->whereNull('frr.delete_time')
->leftJoin('procurement_contract pc','pc.id = frr.contract_id')
->leftJoin('project p','p.id = pc.project_id')->count();
return FinanceReceiptRecord::where($this->searchWhere)->count();
}
}