Browse Source

有赞上线列表优化

wufeng 2 years ago
parent
commit
59b61655de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/Good.php

+ 2 - 2
app/admin/controller/Good.php

@@ -230,7 +230,7 @@ class Good extends Base
 
         $count = Db::name('platform_youzan')
             ->alias("b")
-            ->leftJoin("good a", "a.spuCode=b.spuCode")
+            ->leftJoin("good_basic a", "a.spuCode=b.spuCode")
             ->leftJoin("depart_user u", "u.uid=a.createrid AND u.is_del=0")
             ->where($where)
             ->count();
@@ -240,7 +240,7 @@ class Good extends Base
         $list = Db::name('platform_youzan')
             ->alias("b")
             ->field("b.skuCode,b.platform_id platform_code,b.plat_code,b.id as platform_youzan_id,a.cat_id,a.good_name,a.good_img,a.good_info_img,a.good_thumb_img,b.createrid,a.is_exclusive,a.brand_id,a.supplierNo,a.good_unit,a.noble_metal,a.companyNo,a.spuCode,a.good_type,b.creater,b.addtime,b.updatetime,b.exam_status,a.createrid purchase_id,a.creater purchase,u.itemid")//成本表里的创建人,也是线上商品的采购人,为了防止混淆,给creater取个别名
-            ->leftJoin("good a", "a.spuCode=b.spuCode")
+            ->leftJoin("good_basic a", "a.spuCode=b.spuCode")
             ->leftJoin("depart_user u", "u.uid=a.createrid AND u.is_del=0")
             ->where($where)
             ->page($param['page'], $param['size'])