更正
This commit is contained in:
parent
3c9b4480dd
commit
98b71d38fe
@ -125,7 +125,14 @@
|
||||
public function count(): int
|
||||
{
|
||||
$status = $this->request->get('status', 0);
|
||||
return MarketingContract::where($this->searchWhere)->where('status', $status)->where('review_status', 1)->count();
|
||||
$business_nature = $this->request->get('business_nature', 0);
|
||||
$where=[
|
||||
['status', '=', $status]
|
||||
];
|
||||
if($business_nature>0){
|
||||
$where[]=['business_nature','=',$business_nature];
|
||||
}
|
||||
return MarketingContract::where($this->searchWhere)->where($where)->where('review_status', 1)->count();
|
||||
}
|
||||
|
||||
public function setFileName(): string
|
||||
|
Loading…
x
Reference in New Issue
Block a user