dlhmaster/app/api/logic/HotListLogic.php
2024-07-26 18:35:05 +08:00

21 lines
511 B
PHP

<?php
namespace app\api\logic;
use app\common\basics\Logic;
use think\facade\Db;
class HotListLogic extends Logic
{
public static function index()
{
$result = Db::name('hot_list')
->alias('hl')
->join('goods g', 'hl.goods_id = g.id')
->where('delete_time', 0)
->field('hl.*, g.id as gid, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price')
->limit(6)
->select();
}
}