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

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