From e007e9dafccd22f2b70ce9a0c41885cd6d59e1c3 Mon Sep 17 00:00:00 2001 From: zegezy <1098696801@qq.com> Date: Wed, 27 Dec 2023 20:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/magic-api/api/系统管理/用户管理/列表.ms | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/magic-api/api/系统管理/用户管理/列表.ms b/data/magic-api/api/系统管理/用户管理/列表.ms index 37adec4..24de27c 100644 --- a/data/magic-api/api/系统管理/用户管理/列表.ms +++ b/data/magic-api/api/系统管理/用户管理/列表.ms @@ -5,7 +5,7 @@ "groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a", "name" : "列表", "createTime" : null, - "updateTime" : 1681528279822, + "updateTime" : 1703681585765, "lock" : "0", "createBy" : null, "updateBy" : null, @@ -140,5 +140,6 @@ return db.page(""" ?{username, and su.username like concat('%',#{username},'%')} ?{name, and su.name like concat('%',#{name},'%')} ?{isLogin, and su.is_login = #{isLogin}} - order by ${orderBy || 'su.create_date desc'} + ?{orderByColumn, order by su.${orderByColumn} ${direction == 0 ? 'asc' : direction == 1 ? 'desc' : ''}} + ?{!orderByColumn, order by su.create_date desc} """) \ No newline at end of file