feat(REQ-3300) - 调整金额变更的处理逻辑
This commit is contained in:
parent
cdff03cd13
commit
5d907d297b
@ -232,6 +232,9 @@ public class VisaHelper {
|
||||
}
|
||||
|
||||
public static String buildChangeAmount(BigDecimal changeAmount) {
|
||||
if (Objects.isNull(changeAmount)) {
|
||||
return "";
|
||||
}
|
||||
String amountDesc = "不变";
|
||||
if (changeAmount.compareTo(BigDecimal.ZERO) > 0) {
|
||||
amountDesc = "增加" + changeAmount.abs().toPlainString() + "元";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user