refactor(admin): 图片排序

- 调整了 Maven 构建文件中的 artifactId- 优化了图片查询逻辑,先按创建时间降序,再按排序字段降序
This commit is contained in:
清晨
2025-04-08 16:13:40 +08:00
parent 177517cac7
commit 38ca0152a1
4 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging> <packaging>jar</packaging>
<artifactId>ruoyi-admin</artifactId> <artifactId>xgt-admin</artifactId>
<description> <description>
web服务入口 web服务入口

View File

@@ -148,9 +148,9 @@ mail:
# 是否需要用户名密码验证 # 是否需要用户名密码验证
auth: true auth: true
# 发送方遵循RFC-822标准 # 发送方遵循RFC-822标准
from: xgt778899@163.com from: admin@163.com
# 用户名注意如果使用foxmail邮箱此处user为qq号 # 用户名注意如果使用foxmail邮箱此处user为qq号
user: xgt778899@163.com user: admin@163.com
# 密码注意某些邮箱需要为SMTP服务单独设置密码详情查看相关帮助 # 密码注意某些邮箱需要为SMTP服务单独设置密码详情查看相关帮助
pass: LGj5ingctYT2SNJS pass: LGj5ingctYT2SNJS
# 使用 STARTTLS安全连接STARTTLS是对纯文本通信协议的扩展。 # 使用 STARTTLS安全连接STARTTLS是对纯文本通信协议的扩展。

View File

@@ -148,9 +148,9 @@ mail:
# 是否需要用户名密码验证 # 是否需要用户名密码验证
auth: true auth: true
# 发送方遵循RFC-822标准 # 发送方遵循RFC-822标准
from: xgt778899@163.com from: admin@163.com
# 用户名注意如果使用foxmail邮箱此处user为qq号 # 用户名注意如果使用foxmail邮箱此处user为qq号
user: xgt778899@163.com user: admin@163.com
# 密码注意某些邮箱需要为SMTP服务单独设置密码详情查看相关帮助 # 密码注意某些邮箱需要为SMTP服务单独设置密码详情查看相关帮助
pass: LGj5ingctYT2SNJS pass: LGj5ingctYT2SNJS
# 使用 STARTTLS安全连接STARTTLS是对纯文本通信协议的扩展。 # 使用 STARTTLS安全连接STARTTLS是对纯文本通信协议的扩展。

View File

@@ -99,7 +99,7 @@ public class SysPictureServiceImpl implements ISysPictureService {
lqw.in(bo.getFlags() != null, SysPicture::getFlag, Arrays.asList(bo.getFlags().split(","))); lqw.in(bo.getFlags() != null, SysPicture::getFlag, Arrays.asList(bo.getFlags().split(",")));
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null, lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null,
SysPicture::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime")); SysPicture::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime"));
lqw.orderByDesc(SysPicture::getSort, SysPicture::getCreateTime); lqw.orderByDesc(SysPicture::getCreateTime, SysPicture::getSort);
return lqw; return lqw;
} }