From d91d3db1291c6915817d66e3ce04594ef0b0ab83 Mon Sep 17 00:00:00 2001 From: nili Date: Sun, 17 Mar 2024 15:17:30 +0800 Subject: [PATCH] fx --- .../src/main/java/awesome/group/game/service/AdminService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-service/src/main/java/awesome/group/game/service/AdminService.java b/game-service/src/main/java/awesome/group/game/service/AdminService.java index 36809c0..633f6e7 100644 --- a/game-service/src/main/java/awesome/group/game/service/AdminService.java +++ b/game-service/src/main/java/awesome/group/game/service/AdminService.java @@ -67,7 +67,7 @@ public class AdminService { } wrapper.orderByDesc(MatrixAdvRecord::getId); if (ownerId != 1) { - List appIds = appList.stream().filter(x -> x.getOwnerId() == ownerId).map(MatrixApp::getId).toList(); + List appIds = appList.stream().filter(x -> x.getOwnerId() != null && x.getOwnerId() == ownerId).map(MatrixApp::getId).toList(); wrapper.in(MatrixAdvRecord::getAppId, appIds); } int page = param.current;