panlumeng 3 years ago
parent
commit
e6aaf6f289
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Customer.php

+ 1 - 1
app/admin/controller/Customer.php

@@ -276,7 +276,7 @@ class Customer extends BaseController
         if($custy==false){
             return error_show(1004,"公司不存在");
         }
-        $db= Db::name('customer_org1')->where(['pid'=>$custy['id'],'','is_del'=>0])->count();
+        $db= Db::name('customer_org1')->where(['pid'=>$custy['id'],'is_del'=>0])->count();
         if($db>0){
             return error_show(1004,"下一级有分公司,不允许删除");
         }