更新
This commit is contained in:
parent
8b1adf11af
commit
2d8f9dda16
@ -58,7 +58,7 @@
|
|||||||
*/
|
*/
|
||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
return MarketingContract::withoutField('update_time,delete_time')->where($this->searchWhere)->where('review_status', 0)
|
return MarketingContract::withoutField('update_time,delete_time')->where($this->searchWhere)->where('review_status', 0)->where('contract_type',0)
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()->each(function ($data) {
|
->select()->each(function ($data) {
|
||||||
@ -98,7 +98,7 @@
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return MarketingContract::where($this->searchWhere)->where('review_status', 0)->count();
|
return MarketingContract::where($this->searchWhere)->where('review_status', 0)->where('contract_type',0)->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -106,7 +106,7 @@
|
|||||||
|
|
||||||
public function getReviewStatusTextAttr($value, $data): string
|
public function getReviewStatusTextAttr($value, $data): string
|
||||||
{
|
{
|
||||||
$arr = [0 => '待移交', 1 => '已移交'];
|
$arr = [0 => '不可移交', 1 => '不可移交'];
|
||||||
return $arr[$data['review_status']];
|
return $arr[$data['review_status']];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user