diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index 2081bbc63..480dbd0ea 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -1146,8 +1146,8 @@ class CompanyStatementSetController extends Controller { $pl = M("promote_company","tab_") ->alias('pc') ->field("p.account,p.company_relation,IFNULL(s.nickname,'admin') nickname") - ->join("left join (select company_id,account,company_relation from tab_promote where level = 1 group by company_id ) p on p.company_id = pc.id")//获取会长 - ->join("left join sys_member s on s.uid = pc.uid") + ->join("left join (select company_id,account,company_relation,admin_id from tab_promote where level = 1 group by company_id ) p on p.company_id = pc.id")//获取会长 + ->join("left join sys_member s on s.uid = p.admin_id") ->where("pc.id = {$company_id}") ->find(); $company = array_merge($company_info,$pl);