update AppUserServiceImpl.java
This commit is contained in:
parent
7c052573c7
commit
b00b505a65
@ -259,7 +259,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
|
||||
public AppPageUtils userFans(Integer currPage, Integer uid) {
|
||||
List<Integer> uidList = followService.getFansList(uid);
|
||||
if (uidList.isEmpty()) {
|
||||
return new AppPageUtils(null, 0, 20, currPage);
|
||||
return new AppPageUtils(new ArrayList<>(), 0, 20, currPage);
|
||||
}
|
||||
Page<AppUserEntity> page = new Page<>(currPage, 20);
|
||||
QueryWrapper<AppUserEntity> queryWrapper1 = new QueryWrapper<>();
|
||||
@ -284,7 +284,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
|
||||
public AppPageUtils follow(Integer currPage, AppUserEntity user) {
|
||||
List<Integer> followUids = followService.getFollowUids(user);
|
||||
if (followUids.isEmpty()) {
|
||||
return new AppPageUtils(null, 0, 20, currPage);
|
||||
return new AppPageUtils(new ArrayList<>(), 0, 20, currPage);
|
||||
}
|
||||
Page<AppUserEntity> page = new Page<>(currPage, 20);
|
||||
QueryWrapper<AppUserEntity> queryWrapper1 = new QueryWrapper<>();
|
||||
|
@ -21,8 +21,8 @@ spring:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#数据库监控账号密码 线上环境需开启
|
||||
login-username: admin
|
||||
login-password: admin
|
||||
login-username: linfengcommunity
|
||||
login-password: linfengcommunity
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user