This commit is contained in:
mkm 2024-05-04 10:36:20 +08:00
parent 98b71d38fe
commit 8b1adf11af

View File

@ -125,13 +125,10 @@
public function count(): int
{
$status = $this->request->get('status', 0);
$business_nature = $this->request->get('business_nature', 0);
$where=[
['status', '=', $status]
['status', '=', $status],
['contract_type', '=', 0]
];
if($business_nature>0){
$where[]=['business_nature','=',$business_nature];
}
return MarketingContract::where($this->searchWhere)->where($where)->where('review_status', 1)->count();
}