|
@@ -121,9 +121,9 @@ class Good extends Base
|
|
|
$page = $page >= $total ? $total : $page;
|
|
|
$list = Db::name('good')
|
|
|
->alias("a")
|
|
|
- ->field("b.skuCode,b.platform_code,b.plat_code,b.id as good_id,a.*,b.addtime,b.updatetime,b.exam_status,gn.creater_id purchase_id,gn.creater purchase")//成本表里的创建人,也是线上商品的采购人,为了防止混淆,给creater取个别名
|
|
|
+ ->field("b.skuCode,b.platform_code,b.plat_code,b.id as good_id,a.*,b.addtime,b.updatetime,b.exam_status,gb.createrid purchase_id,gb.creater purchase")//成本表里的创建人,也是线上商品的采购人,为了防止混淆,给creater取个别名
|
|
|
->leftJoin("good_platform b","a.spuCode=b.spuCode")
|
|
|
- ->leftJoin("good_nake gn","gn.spuCode=a.spuCode")
|
|
|
+ ->leftJoin("good_basic gb","gb.spuCode=a.spuCode")
|
|
|
->where($where)
|
|
|
->page($page,$size)
|
|
|
->order("b.addtime desc")
|