ShopGoodsSpecRelation.php 395 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\admin\model\dao;
  3. use think\facade\Cache;
  4. use think\facade\Db;
  5. class ShopGoodsSpecRelation extends BaseDao
  6. {
  7. public static $table = "db_shop_goods_spec_relation";
  8. public function __construct()
  9. {
  10. }
  11. public static function getArrListByGoodsId($id)
  12. {
  13. return Db::table(self::$table)->where(['goods_id' => $id])->select()->toArray();
  14. }
  15. }