From 4c492d98f20373f3c43f509cd5c5e13d75a7fcc7 Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Tue, 16 Jan 2024 10:45:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/admin/controller/AppUserController.java | 3 +-- .../modules/admin/service/impl/AppUserServiceImpl.java | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java b/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java index f7d9c1d..be3c750 100644 --- a/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java +++ b/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java @@ -11,7 +11,6 @@ */ package io.linfeng.modules.admin.controller; -import java.util.Arrays; import java.util.Map; import io.swagger.annotations.Api; @@ -76,7 +75,7 @@ public class AppUserController { return R.ok(); } - + @GetMapping("/ban/{id}") diff --git a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java index f61e60f..d7bb6b6 100644 --- a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java +++ b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java @@ -259,9 +259,9 @@ public class AppUserServiceImpl extends ServiceImpl i public AppPageUtils userFans(Integer currPage, Integer uid) { List uidList = followService.getFansList(uid); if (uidList.isEmpty()) { - return new AppPageUtils(null, 0, 10, currPage); + return new AppPageUtils(null, 0, 20, currPage); } - Page page = new Page<>(currPage, 10); + Page page = new Page<>(currPage, 20); QueryWrapper queryWrapper1 = new QueryWrapper<>(); queryWrapper1.lambda().in(AppUserEntity::getUid, uidList); Page page1 = this.page(page, queryWrapper1); @@ -284,9 +284,9 @@ public class AppUserServiceImpl extends ServiceImpl i public AppPageUtils follow(Integer currPage, AppUserEntity user) { List followUids = followService.getFollowUids(user); if (followUids.isEmpty()) { - return new AppPageUtils(null, 0, 10, currPage); + return new AppPageUtils(null, 0, 20, currPage); } - Page page = new Page<>(currPage, 10); + Page page = new Page<>(currPage, 20); QueryWrapper queryWrapper1 = new QueryWrapper<>(); queryWrapper1.lambda().in(AppUserEntity::getUid, followUids); Page page1 = this.page(page, queryWrapper1);