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