diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index dbaa627d3..b69647904 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -65,6 +65,27 @@ class PromoteCompanyController extends ThinkController $reg_str = "([^0-9]|^){$g_id },"; $map["game_ids"]=["EXP","REGEXP '{$reg_str}'"]; } + if (isset($_REQUEST['pay_type'])) { + $pay_type = $_REQUEST['pay_type']; + $promote_id = M("president_deposit","tab_")->where("pay_type = '$pay_type'")->group("promote_id")->getField("promote_id",true); + if(empty($promote_id)){ + $promote_id = -1; + } + $promote_id = implode(",",$promote_id); + + $c_id = throwPromoteIdToCompanyId($promote_id); + if(isset($promotemap["_string"])){ + $promotemap["_string"] .= " ADN p.id in ($promote_id)"; + }else{ + $promotemap["_string"] = "p.id in ($promote_id)"; + } + if(isset($map["_string"])){ + $map["_string"] .= " ADN id in ($c_id)"; + }else{ + $map["_string"] = "id in ($c_id)"; + } + + } $page = intval(I('get.p', 0)); @@ -152,6 +173,9 @@ class PromoteCompanyController extends ThinkController //分配其他页面需要参数 $this->assign('promoteList', getPromoteByLevel(1)); $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Partner/lists'])->find()); + + $payTypes = PresidentDepositService::$payTypes; + $this->assign('payTypes', $payTypes); $this->meta_title = '推广公司'; $this->display(); } diff --git a/Application/Admin/View/PromoteCompany/lists.html b/Application/Admin/View/PromoteCompany/lists.html index f4f22b254..8563d846e 100644 --- a/Application/Admin/View/PromoteCompany/lists.html +++ b/Application/Admin/View/PromoteCompany/lists.html @@ -90,7 +90,7 @@ - +
+
+ +