From e24aabb8f030f051d480e4657ab564a64900cab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BF=8A=E5=AE=8F?= <389838709@qq.com> Date: Wed, 4 Dec 2024 18:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=88=97=E8=A1=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/cron_func_logs_service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/cron_func_logs_service.go b/app/services/cron_func_logs_service.go index af7c045..23b4095 100644 --- a/app/services/cron_func_logs_service.go +++ b/app/services/cron_func_logs_service.go @@ -9,14 +9,14 @@ import ( func CronFuncLogsList(request *backend.CronFuncLogsListRequest, page int, limit int) (count int64, listInfo []cronfunclogsmodel.CronFuncLogs, err error) { conn := builder.NewCond() if request.CmdId != 0 { - conn = conn.And(builder.Eq{"CmdId": request.CmdId}) + conn = conn.And(builder.Eq{"cmd_id": request.CmdId}) } if request.Status != 0 { - conn = conn.And(builder.Eq{"Status": request.Status}) + conn = conn.And(builder.Eq{"status": request.Status}) } session := cronfunclogsmodel.GetInstance().GetDb().Where(conn) if page != 0 && limit != 0 { - session = session.OrderBy("create_time desc").Limit(limit, (page-1)*limit) + session = session.OrderBy("log_id desc").Limit(limit, (page-1)*limit) } count, err = session.FindAndCount(&listInfo) if err != nil {