|  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         DataDictionaryCustom dic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.STATIC_BONUS.getType(), DataDictionaryEnum.STATIC_BONUS.getCode()); | 
 |  |  |         BigDecimal perProfit = totalIncome.divide(new BigDecimal(dic.getValue()), 2, RoundingMode.HALF_UP).divide(BigDecimal.valueOf(100), 2, RoundingMode.HALF_UP); | 
 |  |  |         BigDecimal perProfit = totalIncome.multiply(new BigDecimal(dic.getValue()).divide(BigDecimal.valueOf(100), 2, RoundingMode.HALF_UP)); | 
 |  |  |  | 
 |  |  |         for (MallMember member : members) { | 
 |  |  |             List<MallGoods> goodsList = mallGoodsMapper.selectOrderGoodsList(member.getId(), profitDate); | 
 |  |  | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             for (MallGoods goods : goodsList) { | 
 |  |  |                 if (goods.getIsNormal() == 1) { | 
 |  |  |                     continue; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 BigDecimal goodsProfit = goods.getStaticProp().multiply(perProfit); | 
 |  |  |  | 
 |  |  |                 int reduce = walletService.reduce(goodsProfit, member.getId(), "score"); | 
 |  |  | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             BigDecimal reduceProfit = income.multiply(prop); | 
 |  |  |             if (reduceProfit.compareTo(BigDecimal.ZERO) > 0) { | 
 |  |  |                 continue; | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             int reduce = walletService.reduce(reduceProfit.negate(), mallMember.getId(), "commission"); | 
 |  |  |             if (reduce == 2) { | 
 |  |  |                 continue; |