wugg 1 年之前
父节点
当前提交
e26039089d
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      app/controller/Headquarters.php
  2. 1 0
      app/controller/UserInfo.php

+ 1 - 1
app/controller/Headquarters.php

@@ -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]);

+ 1 - 0
app/controller/UserInfo.php

@@ -753,6 +753,7 @@ class UserInfo extends BaseController
             ['a.is_del', '=', 0],
             ['a.status', '=', 1],
             ['b.level', '=', 3],
+             ['b.status', '=', 1]
             ['a.companyCode', 'like', 'QS%']
         ];
         if ($supplierNos !== '') $where[] = ['a.companyCode', 'in', $supplierNos];