修改获取思路

This commit is contained in:
ZtRXR 2023-09-02 01:34:01 +08:00
parent e33430e08c
commit 5c80e7cf23

View File

@ -55,8 +55,8 @@ export class HotTopController {
.andWhere("times.fromWeb = :searchWeb",{ .andWhere("times.fromWeb = :searchWeb",{
searchWeb:searchWeb.id searchWeb:searchWeb.id
}) })
.addOrderBy('times.lastTime', "DESC")
.addOrderBy('times.times', "DESC") .addOrderBy('times.times', "DESC")
.addOrderBy('times.lastTime', "DESC")
.limit(limit) .limit(limit)
// .getSql() // .getSql()
.getMany() .getMany()