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 {