| 123456789101112131415161718192021222324252627 |
- <?php
- namespace app\admin\model\dao;
- use think\facade\Cache;
- use think\facade\Db;
- class ShopGoodsSpec extends BaseDao
- {
- public static $table = "db_shop_goods_spec";
- public function __construct()
- {
- }
- public static function getList()
- {
- return Db::table(self::$table)->select()->toArray();
- }
- public static function getGoodsSpecByGoodId($id)
- {
- return Db::table(self::$table)->where(['goods_id' => $id])->find();
- }
- }
|