问题知识库-展示文件-按照创建时间正序排序。
This commit is contained in:
+2
@@ -387,10 +387,12 @@ public class OSSFileServiceImpl extends ServiceImpl<OSSFileMapper, OSSFile> impl
|
|||||||
}
|
}
|
||||||
LambdaQueryWrapper<OSSFile> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<OSSFile> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.in(OSSFile::getId, id.split(","));
|
wrapper.in(OSSFile::getId, id.split(","));
|
||||||
|
wrapper.orderByAsc(OSSFile::getCreateTime);
|
||||||
List<OSSFile> list = this.list(wrapper);
|
List<OSSFile> list = this.list(wrapper);
|
||||||
if (list.size() == 0) {
|
if (list.size() == 0) {
|
||||||
LambdaQueryWrapper<OSSFile> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<OSSFile> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
lambdaQueryWrapper.in(OSSFile::getConnectId, id.split(","));
|
lambdaQueryWrapper.in(OSSFile::getConnectId, id.split(","));
|
||||||
|
lambdaQueryWrapper.orderByAsc(OSSFile::getCreateTime);
|
||||||
list = this.list(lambdaQueryWrapper);
|
list = this.list(lambdaQueryWrapper);
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
|
|||||||
Reference in New Issue
Block a user