更新
This commit is contained in:
parent
98b71d38fe
commit
8b1adf11af
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user