|
@ -181,7 +181,7 @@ public class UserService { |
|
|
query.eq(MatrixAdvRecord::getUserId, userId); |
|
|
query.eq(MatrixAdvRecord::getUserId, userId); |
|
|
query.lt(MatrixAdvRecord::getId, lastId); |
|
|
query.lt(MatrixAdvRecord::getId, lastId); |
|
|
query.eq(MatrixAdvRecord::getAdvType, Constants.VIDEO); |
|
|
query.eq(MatrixAdvRecord::getAdvType, Constants.VIDEO); |
|
|
query.last("limit 20"); |
|
|
query.last("order by id desc limit 20"); |
|
|
List<MatrixAdvRecord> data = advRecordMapper.selectList(query); |
|
|
List<MatrixAdvRecord> data = advRecordMapper.selectList(query); |
|
|
return data.stream().map(MatrixAdvRecordSimple::new).toList(); |
|
|
return data.stream().map(MatrixAdvRecordSimple::new).toList(); |
|
|
} |
|
|
} |
|
|