|
|
@ -51,11 +51,6 @@ class GoodsCategoryRel extends BaseModel |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static function getcategory(int $storeId = null,int $merchantId = null) { |
|
|
|
public static function getcategory(int $storeId = null,int $merchantId = null) { |
|
|
|
print_r([ |
|
|
|
|
|
|
|
'a.store_id' => $storeId, |
|
|
|
|
|
|
|
'a.merchant_id' => $merchantId |
|
|
|
|
|
|
|
//'b.category_id' => $_GET['category_id'] |
|
|
|
|
|
|
|
]);die; |
|
|
|
|
|
|
|
$list = Goods::alias('a') |
|
|
|
$list = Goods::alias('a') |
|
|
|
->join('goods_category_rel b', 'a.goods_id = b.goods_id') |
|
|
|
->join('goods_category_rel b', 'a.goods_id = b.goods_id') |
|
|
|
->where([ |
|
|
|
->where([ |
|
|
|