diff --git a/Application/Admin/Controller/MarketPercentageController.class.php b/Application/Admin/Controller/MarketPercentageController.class.php
index d22c1a7ae..97953dcdd 100644
--- a/Application/Admin/Controller/MarketPercentageController.class.php
+++ b/Application/Admin/Controller/MarketPercentageController.class.php
@@ -519,16 +519,16 @@ 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_coefficientSave = M("market_altogether", "tab_")
+ // ->where([
+ // 'pay_time' => $pay_time,
+ // 'market_check' => 1
+ // ])
+ // ->find();
- if ($if_coefficientSave) {
- $this->ajaxReturn(['status' => 0, 'msg' => "市场部已确认,绩效系数再不可修改"]);
- }
+ // 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());
@@ -583,9 +583,19 @@ class MarketPercentageController extends ThinkController
} else {
+ $uids = M("market_altogether", "tab_")
+ ->where([
+ 'pay_time' => $pay_time,
+ 'market_check' => 0
+ ])
+ ->getField('admin_id',true);
+ if($uids){
+ $uids = implode(",",$uids);
+ $map['_string'] = "sys_auth_group_access.uid in ({$uids})";
+ }
+
$map['sys_auth_group_access.uid'] =['in',$this->MarketEvent->getAdminidByLeaderid()];
$map['auth.id'] =['in',$this->MarketEvent->getNoLeaderMarketGroupId()];
-
$data = M("auth_group_access")
->field("sys_member.nickname,sys_member.real_name,sys_member.uid,sys_auth_group_access.group_id,IF(coefficient is not NULL, coefficient, 100) coefficient,sys_ucenter_member.leave_time")
->join("left join sys_auth_group auth on auth.id = sys_auth_group_access.group_id")
diff --git a/Application/Admin/View/MarketPercentage/coefficient.html b/Application/Admin/View/MarketPercentage/coefficient.html
index a48112313..b5724407a 100644
--- a/Application/Admin/View/MarketPercentage/coefficient.html
+++ b/Application/Admin/View/MarketPercentage/coefficient.html
@@ -103,20 +103,24 @@