From 552a6f8181c73eb45fc05c239f22294d3ff6acda Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 28 Dec 2020 09:09:10 +0800 Subject: [PATCH] =?UTF-8?q?12.28=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/MarketPercentageController.class.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/MarketPercentageController.class.php b/Application/Admin/Controller/MarketPercentageController.class.php index 60a6c5b20..0447a0050 100644 --- a/Application/Admin/Controller/MarketPercentageController.class.php +++ b/Application/Admin/Controller/MarketPercentageController.class.php @@ -475,6 +475,17 @@ class MarketPercentageController extends ThinkController unset($_GET['is_get']); $data = $_GET; + $if_coefficientSave = M("market_altogether","tab_") + ->where([ + 'pay_time'=>$pay_time, + 'market_check'=>1 + ]) + ->find(); + + if ($if_coefficientSave) { + $this->ajaxReturn(['status'=>0,'msg'=>"市场部已确认,绩效系数再不可修改"]); + } + $admin = $_SESSION['onethink_admin']['user_auth']['username']; $coefficient_check_detail = "已审批({$admin})
".date("Y-m-d H:i:s",time()); $marketSave['coefficient_check'] = 1; @@ -525,7 +536,7 @@ class MarketPercentageController extends ThinkController } - $this->ajaxReturn(['status'=>1,'msg'=>"绩效编辑成功"]); + $this->ajaxReturn(['status'=>1,'msg'=>"绩效系数编辑成功"]); } else {