fix
Hentua
2023-06-03 a51f290518a41cf8993d8ee3f9b77e33e93b186b
src/main/java/cc/mrbird/febs/mall/service/impl/ScoreServiceImpl.java
@@ -427,10 +427,11 @@
        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("达到当月积分上限");
//                throw new FebsException("达到当月积分上限");
                mallScoreSignRecord.setScore(scoreSetting.getMostSignIn() - totalScore);
            }
        }