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