|
@@ -554,7 +554,7 @@ class Headquarters extends BaseController
|
|
|
$value['company_name'] = '';
|
|
|
$value['has_account'] = (AccountCompany::alias("a")
|
|
|
->leftJoin('account b', 'b.id=a.account_id')
|
|
|
- ->where([ ['a.is_del', '=', 0], ['a.status', '=', 1],['b.level', '=', 3], ['a.companyCode', '=', $value['code']]])
|
|
|
+ ->where([ ['a.is_del', '=', 0], ['a.status', '=', 1], ['b.status', '=', 1],['b.level', '=', 3], ['a.companyCode', '=', $value['code']]])
|
|
|
->findOrEmpty()->isEmpty())==False;
|
|
|
}
|
|
|
return json_show("0", "获取成功", ['list' => $list, 'count' => $count]);
|