From 588fb81c1ee04a544f5b034014e468f3f005d978 Mon Sep 17 00:00:00 2001 From: zhanggucheng Date: Fri, 31 Dec 2021 17:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E6=B0=B4=E9=A2=84=E8=AD=A6=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PromoteCompanyWarningController.class.php | 7 +++++-- Application/Admin/View/PromoteCompanyWarning/records.html | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/PromoteCompanyWarningController.class.php b/Application/Admin/Controller/PromoteCompanyWarningController.class.php index b52c5afe7..3090069b5 100644 --- a/Application/Admin/Controller/PromoteCompanyWarningController.class.php +++ b/Application/Admin/Controller/PromoteCompanyWarningController.class.php @@ -29,7 +29,7 @@ class PromoteCompanyWarningController extends ThinkController $month = I('month', ''); $companyId = I('company_id', 0); $isExport = I('is_export', 0); - $isSignContact = I('is_sign_contact', -1); + $isSignContact = I('is_sign_contact', 0); $where = [ '_string' => '1=1 and b.company_id is not null', 'c.company_belong' => ['in', [1, 2]], @@ -47,9 +47,10 @@ class PromoteCompanyWarningController extends ThinkController $monthNumber = date('Ym', strtotime($month.'-01')); $where['b.month'] = $monthNumber; } + $where['c.cooperation_status'] = 1; $joinDataTable = 'tab_company_monthly_data'; - $columns = ['b.company_id', 'c.company_name', 'c.is_sign_contact', 'b.pay_amount']; + $columns = ['b.company_id', 'c.company_name', 'c.is_sign_contact', 'b.pay_amount', 'c.cooperation_status']; $orderBy = 'b.company_id asc'; if ($type == 'total') { $subSql = M('company_monthly_data', 'tab_')->field('company_id')->where(['is_warning' => 1])->select(false); @@ -101,6 +102,7 @@ class PromoteCompanyWarningController extends ThinkController foreach ($items as $key => $item) { $item['month'] = date('Y-m', strtotime($item['month'].'01')); $item['is_sign_contact_text'] = $item['is_sign_contact'] == 1 ? '是' : '否'; + $item['cooperation_status_text'] = $item['cooperation_status'] == 1 ? '合作中' : '终止合作'; $itemPromotes = $companyPromotes[$item['company_id']]; $promoteCount = count($itemPromotes); $index = 0; @@ -125,6 +127,7 @@ class PromoteCompanyWarningController extends ThinkController $item['month'] = date('Y-m', strtotime($item['month'].'01')); } $item['is_sign_contact_text'] = $item['is_sign_contact'] == 1 ? '是' : '否'; + $item['cooperation_status_text'] = $item['cooperation_status'] == 1 ? '合作中' : '终止合作'; $itemPromotes = $companyPromotes[$item['company_id']]; $promoteCount = count($itemPromotes); $index = 0; diff --git a/Application/Admin/View/PromoteCompanyWarning/records.html b/Application/Admin/View/PromoteCompanyWarning/records.html index 451f7e52c..a8cba6780 100644 --- a/Application/Admin/View/PromoteCompanyWarning/records.html +++ b/Application/Admin/View/PromoteCompanyWarning/records.html @@ -104,7 +104,7 @@
@@ -128,13 +128,16 @@ 合作方名称 - 流水金额 + + 累计 + 流水金额 达标月份 会长账号 市场专员 所属市场部 + 合作关系 是否签约 @@ -156,6 +159,7 @@ {$data.account} {$data.market_user_name} {$data.market_department_name} + {$data.cooperation_status_text} 0):?> {$data.is_sign_contact_text}