From 2d8f9dda16d7a78c54fabcca0a074316e0f5c578 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 4 May 2024 10:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lists/marketing/MarketingHandoverContractLists.php | 4 ++-- app/common/model/marketing/MarketingContract.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/adminapi/lists/marketing/MarketingHandoverContractLists.php b/app/adminapi/lists/marketing/MarketingHandoverContractLists.php index 743cdd6b5..41fa2de8b 100644 --- a/app/adminapi/lists/marketing/MarketingHandoverContractLists.php +++ b/app/adminapi/lists/marketing/MarketingHandoverContractLists.php @@ -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(); } } \ No newline at end of file diff --git a/app/common/model/marketing/MarketingContract.php b/app/common/model/marketing/MarketingContract.php index 8838b4d9f..0a17f11dd 100644 --- a/app/common/model/marketing/MarketingContract.php +++ b/app/common/model/marketing/MarketingContract.php @@ -106,7 +106,7 @@ public function getReviewStatusTextAttr($value, $data): string { - $arr = [0 => '待移交', 1 => '已移交']; + $arr = [0 => '不可移交', 1 => '不可移交']; return $arr[$data['review_status']]; }