Commit a68ccebc authored by Smile's avatar Smile

登录时查找用户等级报错

parent 0ff690f9
......@@ -163,7 +163,7 @@ public class MemberUserLevelConfigServiceImpl extends AbstractService<MemberUser
.sorted(Comparator.comparing(MemberUserLevelConfigDO::getLowerCount))
.collect(Collectors.toList());
MemberUserLevelConfigDO memberUserLevelConfigDO = sortLevelConfig.stream().filter(config -> config.getLowerCount() <= scoreCount && config.getUpperCount() >= scoreCount)
.findAny().orElse(sortLevelConfig.get(sortLevelConfig.size() - 1));
.findAny().orElse(sortLevelConfig.size()!=0?sortLevelConfig.get(sortLevelConfig.size() - 1):null);
return BeanUtil.copyProperties(memberUserLevelConfigDO, MemberUserLevelConfigBaseRespVO.class);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment