更新报销模块
This commit is contained in:
parent
0e30107b12
commit
870567ed7a
@ -83,7 +83,10 @@ class FinancePaymentApplyLists extends BaseAdminDataLists implements ListsSearch
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return FinancePaymentApply::where($this->searchWhere)->count();
|
return Db::name('FinancePaymentApply')->alias('fpa')
|
||||||
|
->where($this->searchWhere)
|
||||||
|
->leftJoin('procurement_contract pc','pc.id = fpa.contract_id')
|
||||||
|
->leftJoin('project p','p.id = pc.project_id')->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -79,7 +79,10 @@ class FinancePaymentPlanLists extends BaseAdminDataLists implements ListsSearchI
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return FinancePaymentPlan::where($this->searchWhere)->count();
|
return Db::name('FinancePaymentPlan')->alias('fpp')
|
||||||
|
->where($this->searchWhere)
|
||||||
|
->leftJoin('procurement_contract pc','pc.id = fpp.contract_id')
|
||||||
|
->leftJoin('project p','p.id = pc.project_id')->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -80,7 +80,10 @@ class FinanceReceiptRecordLists extends BaseAdminDataLists implements ListsSearc
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return FinanceReceiptRecord::where($this->searchWhere)->count();
|
return Db::name('FinanceReceiptRecord')->alias('frr')
|
||||||
|
->where($this->searchWhere)
|
||||||
|
->leftJoin('procurement_contract pc','pc.id = frr.contract_id')
|
||||||
|
->leftJoin('project p','p.id = pc.project_id')->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -80,7 +80,10 @@ class FinanceRefundRecordLists extends BaseAdminDataLists implements ListsSearch
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return FinanceRefundRecord::where($this->searchWhere)->count();
|
return Db::name('FinanceRefundRecord')->alias('frr')
|
||||||
|
->where($this->searchWhere)
|
||||||
|
->leftJoin('procurement_contract pc','pc.id = frr.contract_id')
|
||||||
|
->leftJoin('project p','p.id = pc.project_id')->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -81,7 +81,12 @@ class FinanceReturnedMoneyLists extends BaseAdminDataLists implements ListsSearc
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return FinanceReturnedMoney::where($this->searchWhere)->count();
|
return Db::name('FinanceReturnedMoney')->alias('frm')
|
||||||
|
->where($this->searchWhere)
|
||||||
|
->leftJoin('contract c','c.id = frm.contract_id')
|
||||||
|
->leftJoin('bid_buy_bidding_document bbbd','bbbd.id = c.buy_bidding_document_id')
|
||||||
|
->leftJoin('project p','p.id = bbbd.project_id')
|
||||||
|
->leftJoin('custom ct','ct.id = c.customer_id')->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -78,7 +78,12 @@ class FinanceReturnedRecordLists extends BaseAdminDataLists implements ListsSear
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return FinanceReturnedRecord::where($this->searchWhere)->count();
|
return Db::name('FinanceReturnedRecord')->alias('frr')
|
||||||
|
->where($this->searchWhere)
|
||||||
|
->leftJoin('contract c','c.id = frr.contract_id')
|
||||||
|
->leftJoin('bid_buy_bidding_document bbbd','bbbd.id = c.buy_bidding_document_id')
|
||||||
|
->leftJoin('project p','p.id = bbbd.project_id')
|
||||||
|
->leftJoin('custom ct','ct.id = c.customer_id')->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user