From f4f822d31adeee30bd166cecfa4e94df08420fcc Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 28 Sep 2020 14:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=8F=B8=E7=BB=91=E5=AE=9A=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AggregateRelationController.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/AggregateRelationController.class.php b/Application/Admin/Controller/AggregateRelationController.class.php index 01464363e..8d0346fd7 100644 --- a/Application/Admin/Controller/AggregateRelationController.class.php +++ b/Application/Admin/Controller/AggregateRelationController.class.php @@ -678,7 +678,8 @@ class AggregateRelationController extends AdminController * @return void */ protected function getBindCompanyId($type){ - $dbres = M("CompanyRelation","tab_")->where("first_company_type = {$type} OR second_company_type = {$type}")->field("first_company_id,second_company_id")->select(); + $dbres = M("CompanyRelation","tab_")->where("first_company_type = {$type} OR second_company_type = {$type}")->field("first_company_id,second_company_id,first_company_type,second_company_type")->select(); + if(empty($dbres)){ return false; }else{ @@ -690,6 +691,7 @@ class AggregateRelationController extends AdminController $sendid[] = $v['second_company_id']; } } + return implode(",",$sendid); } }