|
|
@@ -106,6 +106,18 @@ class GoodsCategoryService extends BaseService
|
|
|
return $data;
|
|
|
}
|
|
|
|
|
|
+ //获取商家下 所有启用的商品分类
|
|
|
+ public static function getEnableGoodsCategory($sjId)
|
|
|
+ {
|
|
|
+ $cat = CategoryService::getEnableList($sjId);
|
|
|
+ $where = [
|
|
|
+ 'merchantId' => $sjId,
|
|
|
+ 'cId' => ['in', array_column($cat, 'id')],
|
|
|
+ ];
|
|
|
+ $data = self::getAllList('cId as classId,gId', $where);
|
|
|
+ return $data;
|
|
|
+ }
|
|
|
+
|
|
|
//获取常用分类的 goods id linqh 2021.04.09
|
|
|
public static function getOftenIds($sjId)
|
|
|
{
|