wugg 1 year ago
parent
commit
9426e7ec19
2 changed files with 1 additions and 2 deletions
  1. 1 1
      app/admin/controller/Keepbrand.php
  2. 0 1
      app/model/AccountItem.php

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

@@ -92,7 +92,7 @@ class Keepbrand extends Base
         $data = Db::name("brand")->alias('a')
             ->join("brand_book b","b.brand_id=a.id")
             ->field("b.*,a.brand_name")
-            ->where(["a.id"=>$info['brand_id']])->find();
+            ->where(["b.id"=>$info['brand_id']])->find();
         if($data){
             return app_show(0,"获取成功",$data);
         }else{

+ 0 - 1
app/model/AccountItem.php

@@ -11,7 +11,6 @@ use think\Model;
 class AccountItem extends Model
 {
     protected $connection='mysql_sys';
-    
     public function GetUidByDepartId($departId){
         return $this->where(["itemid"=>$departId])->column("account_id");
     }