update
This commit is contained in:
parent
4e17e57ef7
commit
94ec3e0a87
@ -62,12 +62,11 @@
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
$status = $this->request->get('status', 0);
|
||||
return MarketingContract::where($this->searchWhere)->where([
|
||||
['review_status','=', 1],
|
||||
['contract_type','=',0],
|
||||
['status','=',0]
|
||||
])
|
||||
->where('status', $status)
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
@ -127,10 +126,10 @@
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
$status = $this->request->get('status', 0);
|
||||
return MarketingContract::where($this->searchWhere)->where('status', $status)->where([
|
||||
return MarketingContract::where($this->searchWhere)->where([
|
||||
['review_status','=', 1],
|
||||
['contract_type','=',0],
|
||||
['status','=',0]
|
||||
])->count();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user