uint ->int

This commit is contained in:
renzhiyuan 2024-11-29 18:03:00 +08:00
parent 8b6160af9d
commit 77b7c9c207
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func GetListByWhere(request *backend.CmdListRequest, page int, limit int) (count
cond = cond.And(builder.In("cmd_id", request.CmdIds)) cond = cond.And(builder.In("cmd_id", request.CmdIds))
} }
session := croncmdmodel.GetInstance().GetDb().Where(cond).OrderBy("create_time desc") session := croncmdmodel.GetInstance().GetDb().Where(cond).OrderBy("update_time desc")
if page != 0 && limit != 0 { if page != 0 && limit != 0 {
session = session.Limit(limit, (page-1)*limit) session = session.Limit(limit, (page-1)*limit)