|
|
@@ -162,10 +162,10 @@ public class DistributePopularizeController {
|
|
|
BigDecimal points = BigDecimal.valueOf(distributePointsExchangeMoney.getPoints());
|
|
|
BigDecimal money = distributePointsExchangeMoney.getMoney();
|
|
|
BigDecimal oneHundred = BigDecimal.valueOf(100);
|
|
|
- if (user.getPoints().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+ if (user.getPoints().compareTo(BigDecimal.ZERO) >= 0) {
|
|
|
distributePopularizeView.setGotMoney(user.getPoints().divide(points).multiply(money).divide(oneHundred));
|
|
|
}
|
|
|
- if (user.getPoints().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+ if (user.getPoints().compareTo(BigDecimal.ZERO) >= 0) {
|
|
|
distributePopularizeView.setWaitingMoney(waitingPoints.divide(points).multiply(money).divide(oneHundred));
|
|
|
}
|
|
|
}
|