| | |
| | | } |
| | | } |
| | | BigDecimal sumMoney = orderMeals.stream().map(TOrderMeal::getPayMoney).reduce(BigDecimal::add).get(); |
| | | if(sumMoney.compareTo(dto.getMinMoney()) >= 0 || sumMoney.compareTo(dto.getMaxMoney()) <= 0){ |
| | | if(sumMoney.compareTo(dto.getMinMoney()) <= 0 || sumMoney.compareTo(dto.getMaxMoney()) >= 0){ |
| | | int weiXin = getRandomPayType(orderMeals.size(), dto.getWeiXinProportion()); |
| | | int ali = getRandomPayType(orderMeals.size(), dto.getAliProportion()); |
| | | int card = getRandomPayType(orderMeals.size(), dto.getCardProportion()); |