From 77b7c9c2074df6d4083e3523920b9ed6def80cd6 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Fri, 29 Nov 2024 18:03:00 +0800 Subject: [PATCH] uint ->int --- app/services/cmd_service/cmd_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/cmd_service/cmd_service.go b/app/services/cmd_service/cmd_service.go index 5e9e370..e964f0d 100644 --- a/app/services/cmd_service/cmd_service.go +++ b/app/services/cmd_service/cmd_service.go @@ -33,7 +33,7 @@ func GetListByWhere(request *backend.CmdListRequest, page int, limit int) (count 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 { session = session.Limit(limit, (page-1)*limit)