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)