商品列表添加上商品返比文字
This commit is contained in:
parent
77304504c9
commit
8275338d0b
@ -932,7 +932,7 @@ class GoodsLogic extends Logic
|
||||
->alias('hl')
|
||||
->join('goods g', 'hl.goods_id = g.id')
|
||||
->where('delete_time', 0)
|
||||
->field('hl.id as hl_id, g.id as id, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price')
|
||||
->field('hl.id as hl_id, g.id as id, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price, g.subsidy_id')
|
||||
->select()
|
||||
->toArray();
|
||||
foreach ($hot_list as $k => &$v) {
|
||||
@ -963,7 +963,7 @@ class GoodsLogic extends Logic
|
||||
->join('goods g', 'og.goods_id = g.id')
|
||||
->where($onSaleWhere)
|
||||
->where($shopWhere)
|
||||
->field('og.goods_id, og.create_time, count(*) as count, g.id as gid, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price')
|
||||
->field('og.goods_id, og.create_time, count(*) as count, g.id as gid, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price, g.subsidy_id')
|
||||
->group('og.goods_id')
|
||||
->order('og.create_time desc, count desc')
|
||||
->page($page, $size)
|
||||
@ -1064,7 +1064,7 @@ class GoodsLogic extends Logic
|
||||
->where($shopWhere)
|
||||
->where($onSaleWhere)
|
||||
->where('delete_time', 0)
|
||||
->field('ng.id as ng_id, g.id as id, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price')
|
||||
->field('ng.id as ng_id, g.id as id, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price, g.subsidy_id')
|
||||
->select()
|
||||
->toArray();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user