feat: 后台商品列表调试 店铺表加索尼
parent
ac16a06d7f
commit
a33a6aa9fa
|
@ -206,7 +206,7 @@ class GoodsLogic extends Logic
|
||||||
->page($get['page'], $get['limit'])
|
->page($get['page'], $get['limit'])
|
||||||
->order('g.create_time', 'desc')
|
->order('g.create_time', 'desc')
|
||||||
->select();
|
->select();
|
||||||
$count = Goods::alias('g')->leftJoin('shop s', 's.id = g.shop_id')->where($where)->count();
|
$count = Goods::alias('g')->where($where)->count();
|
||||||
foreach($lists as &$item) {
|
foreach($lists as &$item) {
|
||||||
$item['price'] = $item['spec_type'] == 1 ? $item["min_price"] : $item["min_price"] . " ~ " . $item["max_price"];
|
$item['price'] = $item['spec_type'] == 1 ? $item["min_price"] : $item["min_price"] . " ~ " . $item["max_price"];
|
||||||
switch($item['shop_type']) {
|
switch($item['shop_type']) {
|
||||||
|
|
Loading…
Reference in New Issue