feature/main20240421
郭嘉 9 months ago
parent f98a278724
commit 6eee1be372
  1. 3
      app/common/model/GoodsCategoryRel.php

@ -13,6 +13,7 @@ declare (strict_types=1);
namespace app\common\model; namespace app\common\model;
use cores\BaseModel; use cores\BaseModel;
use app\common\model\Goods;
/** /**
* 商品与分类关系模型 * 商品与分类关系模型
@ -50,7 +51,7 @@ class GoodsCategoryRel extends BaseModel
} }
public static function getcategory(int $storeId = null,int $merchantId = null) { public static function getcategory(int $storeId = null,int $merchantId = null) {
$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([
'a.store_id' => $storeId, 'a.store_id' => $storeId,

Loading…
Cancel
Save