|
|
@@ -169,7 +169,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
@Override
|
|
|
public RanKingUser rankingList(RanKingUserQuery query) {
|
|
|
RanKingUser ranKingUser = new RanKingUser();
|
|
|
-
|
|
|
Long time = System.currentTimeMillis(); //当前时间的时间戳
|
|
|
if (query.getStatus() == 0) {
|
|
|
long zero1 = time / (1000 * 3600 * 24) * (1000 * 3600 * 24) - TimeZone.getDefault().getRawOffset();
|
|
|
@@ -190,8 +189,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
List<RanKingUser> ranKingUsers = baseMapper.selectByRanks(query);
|
|
|
if (ranKingUsers != null && ranKingUsers.size() != 0) {
|
|
|
ranKingUser.setRanKingUsers(ranKingUsers);
|
|
|
+ }else {
|
|
|
+ ranKingUser.setRanKingUsers(new ArrayList<>());
|
|
|
}
|
|
|
-
|
|
|
}else {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
int month = cal.get(Calendar.MONTH) + 1;
|
|
|
@@ -210,6 +210,8 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
List<RanKingUser> ranKingUsers = baseMapper.selectByRanks(query);
|
|
|
if (ranKingUsers != null && ranKingUsers.size() != 0) {
|
|
|
ranKingUser.setRanKingUsers(ranKingUsers);
|
|
|
+ }else {
|
|
|
+ ranKingUser.setRanKingUsers(new ArrayList<>());
|
|
|
}
|
|
|
}
|
|
|
return ranKingUser;
|