From 43a335bc28bbf65ffd2e8852c45fa2dd357ae9f5 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 13 Jan 2020 22:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=BB=93=E7=AE=97=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=80=BB=E6=B5=81=E6=B0=B4=E5=BC=B9=E7=AA=97=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/AjaxController.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/AjaxController.class.php b/Application/Admin/Controller/AjaxController.class.php index a92e4fd6f..d837eafe7 100644 --- a/Application/Admin/Controller/AjaxController.class.php +++ b/Application/Admin/Controller/AjaxController.class.php @@ -362,14 +362,18 @@ class AjaxController extends ThinkController{ } // var_dump($map);die(); if ($_REQUEST['company_id']) { - $map['company_id'] = $_REQUEST['company_id']; + $map['_string'] = "tab_promote.company_id={$_REQUEST['company_id']} and ext_field is null"; } +// $map['widthdraw_number'] = ['neq','']; + $data = M("withdraw","tab_") - ->field("widthdraw_number,promote_account,tab_promote_company.id as company_id,company_name,tab_withdraw.settlement_type,mobile_phone,real_name,bank_card,account_openin,address,game_ratio,bank_account") + ->field("widthdraw_number,promote_account,tab_promote_company.id as company_id,tab_promote_company.company_name,tab_withdraw.settlement_type,mobile_phone,real_name,bank_card,account_openin,address,game_ratio,bank_account") ->join("left join tab_promote on tab_withdraw.promote_id=tab_promote.id") ->join("left join tab_promote_company on tab_promote.company_id=tab_promote_company.id") + ->join("left join tab_statement as statement on tab_withdraw.widthdraw_number = statement.ext_field") ->where($map) +// ->where("widthdraw_number is not NULL") ->select();