nili 5 months ago
parent
commit
485f303097
  1. 2
      game-service/src/main/java/awesome/group/game/service/citrus/UserService.java

2
game-service/src/main/java/awesome/group/game/service/citrus/UserService.java

@ -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();
} }

Loading…
Cancel
Save