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