【fix】 客户端状态记录根据时间倒叙

This commit is contained in:
wujiawei 2024-07-29 21:15:30 +08:00
parent ea30f23965
commit d3a6907525

View File

@ -111,7 +111,9 @@ public class LazyNettyClientStateRecordRepositoryImpl implements LazyNettyClie
public Result<LazyPage<LazyNettyClientStateRecord>> findPage(int size,int current,LazyNettyClientStateRecord lazyNettyClientStateRecord) {
LazyNettyClientStateRecordDO lazyNettyClientStateRecordDO = LazyNettyClientStateRecordConverter.INSTANCE.fromLazyNettyClientStateRecord(lazyNettyClientStateRecord);
LazyPage<LazyNettyClientStateRecord> lazyPage = new LazyPage<>(current,size);
LazyPage<LazyNettyClientStateRecord> lazyNettyClientStateRecordLazyPage = lazyLambdaStream.selectPage(LazyWrappers.lambdaWrapperBean(lazyNettyClientStateRecordDO),lazyPage, LazyNettyClientStateRecord.class);
LazyPage<LazyNettyClientStateRecord> lazyNettyClientStateRecordLazyPage = lazyLambdaStream
.selectPage(LazyWrappers.lambdaWrapperBean(lazyNettyClientStateRecordDO)
.orderByDesc(LazyNettyClientStateRecordDO::getCreateTime),lazyPage, LazyNettyClientStateRecord.class);
return ResultFactory.successOf(lazyNettyClientStateRecordLazyPage);
}