|
|
@@ -17,6 +17,7 @@ import org.springframework.dao.DuplicateKeyException;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.math.RoundingMode;
|
|
|
|
|
|
/*
|
|
|
*项目名: netflix
|
|
|
@@ -87,7 +88,7 @@ public class UserBenefitsServiceImpl implements UserBenefitsService {
|
|
|
if (source != UserBalanceSourceRecord.Source.close && source != UserBalanceSourceRecord.Source.balance && yhsId == 0) {
|
|
|
try {
|
|
|
//短信到账提醒
|
|
|
- smsService.sendSmsToRelationUser(userId, Constant.BALANCE_NOTIFY_MSG, String.valueOf(addBalance.divide(BigDecimal.valueOf(100))));
|
|
|
+ smsService.sendSmsToRelationUser(userId, Constant.BALANCE_NOTIFY_MSG, String.valueOf(addBalance.divide(BigDecimal.valueOf(100), 2, RoundingMode.DOWN)));
|
|
|
} catch (Exception e) {
|
|
|
}
|
|
|
}
|