correct notification, add community
Change-Id: Ifb87c82f5a074b1e4b653fe109bcea403b9848f8
diff --git a/src/main/java/com/g9/g9backend/controller/NotificationController.java b/src/main/java/com/g9/g9backend/controller/NotificationController.java
index 55a30f3..4f451df 100644
--- a/src/main/java/com/g9/g9backend/controller/NotificationController.java
+++ b/src/main/java/com/g9/g9backend/controller/NotificationController.java
@@ -51,12 +51,12 @@
public ResponseEntity<IPage<Notification>> getNotification(@RequestParam Integer userId,
@RequestParam Integer pageNumber,
@RequestParam Integer rows) {
- Page<Notification> pageNotification = new Page<>(pageNumber, rows);
- LambdaQueryWrapper<Notification> query = new LambdaQueryWrapper<Notification>()
+ Page<Notification> notificationPage = new Page<>(pageNumber, rows);
+ LambdaQueryWrapper<Notification> notificationQuery = new LambdaQueryWrapper<Notification>()
.eq(Notification::getUserId, userId)
.orderByDesc(Notification::getCreateAt);
- IPage<Notification> result = notificationService.page(pageNotification, query);
+ IPage<Notification> result = notificationService.page(notificationPage, notificationQuery);
logger.info("通知已返回");
return ResponseEntity.ok(result);