|
@@ -80,7 +80,7 @@ public class AppGameItemController extends BaseController
|
|
AppGameItemVO appGameItemVO = new AppGameItemVO();
|
|
AppGameItemVO appGameItemVO = new AppGameItemVO();
|
|
BeanUtils.copyProperties(gameItem, appGameItemVO);
|
|
BeanUtils.copyProperties(gameItem, appGameItemVO);
|
|
BigDecimal lotteryCount = new BigDecimal(gameItem.getLotteryCount());
|
|
BigDecimal lotteryCount = new BigDecimal(gameItem.getLotteryCount());
|
|
- appGameItemVO.setLotteryRate(lotteryCount.divide(lotteryCountSum).setScale(2, BigDecimal.ROUND_DOWN).doubleValue());
|
|
|
|
|
|
+ appGameItemVO.setLotteryRate(lotteryCount.divide(lotteryCountSum).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|