refactor(admin): 图片排序
- 调整了 Maven 构建文件中的 artifactId- 优化了图片查询逻辑,先按创建时间降序,再按排序字段降序
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user