This commit is contained in:
mkm 2024-05-04 10:53:36 +08:00
parent 8b1adf11af
commit 2d8f9dda16
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@
*/
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)
->order(['id' => 'desc'])
->select()->each(function ($data) {
@ -98,7 +98,7 @@
*/
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();
}
}

View File

@ -106,7 +106,7 @@
public function getReviewStatusTextAttr($value, $data): string
{
$arr = [0 => '待移交', 1 => '已移交'];
$arr = [0 => '不可移交', 1 => '不可移交'];
return $arr[$data['review_status']];
}