调整排序

This commit is contained in:
xpecya 2024-12-15 16:36:44 +08:00
parent 5be3ae55c7
commit 6cdf895ea6
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public interface NewsMapper {
"and news.id > #{last}" +
"</if>" +
"</where>" +
"order by concat('`', #{orderBy}, '`') " +
"order by concat('`', ${orderBy}, '`') " +
"<if test=\"'desc'.equals(direction)\">" +
"desc" +
"</if>" +