| | |
| | | hasSignQuery.eq(MallScoreSignRecord::getMemberId, member.getId()); |
| | | List<MallScoreSignRecord> hasSignTotalList = mallScoreSignRecordMapper.selectList(hasSignQuery); |
| | | if (CollUtil.isNotEmpty(hasSignTotalList)) { |
| | | int totalScore = hasSignTotalList.stream().mapToInt(MallScoreSignRecord::getTotalCnt).sum(); |
| | | int totalScore = hasSignTotalList.stream().mapToInt(MallScoreSignRecord::getScore).sum(); |
| | | |
| | | if (totalScore + mallScoreSignRecord.getScore() > scoreSetting.getMostSignIn()) { |
| | | throw new FebsException("达到当月积分上限"); |