fix
Hentua
2023-06-04 9cf47e10044ecb29669dec48d8b649b4fb46898f
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);
            }
        }