|
|
@@ -16,13 +16,14 @@ class GoodsCategoryService extends BaseService
|
|
|
//查询一个分类下的商品,有分页 ssh 2019.12.2
|
|
|
public static function getGoodsList($where)
|
|
|
{
|
|
|
+ unset($where['delStatus']);//这个后面改进
|
|
|
$data = GoodsCategoryClass::getList('*', $where, 'inTurn DESC');
|
|
|
$list = isset($data['list']) && !empty($data['list']) ? $data['list'] : [];
|
|
|
if (empty($list)) {
|
|
|
return $data;
|
|
|
}
|
|
|
$ids = array_column($list, 'gId');
|
|
|
- $list = GoodsService::getAllByCondition(['id' => ['in', $ids]], 'inTurn DESC', '*');
|
|
|
+ $list = GoodsService::getAllByCondition(['id' => ['in', $ids]], null, '*');
|
|
|
$data['list'] = GoodsClass::groupGoodsBaseInfo($list);
|
|
|
return $data;
|
|
|
}
|