封顶金额
This commit is contained in:
parent
c188b08f66
commit
fc4a1ff416
@ -458,7 +458,7 @@ public class UserOrdersServiceImpl extends ServiceImpl<UserOrdersMapper, EbikeUs
|
||||
};
|
||||
totalAmount = totalAmount.add(decimal);
|
||||
BigDecimal cappedAmount = feignEbikeSysRcostsetDto.getCappedAmount();
|
||||
int result = cappedAmount.compareTo(totalAmount);
|
||||
int result = totalAmount.compareTo(cappedAmount);
|
||||
if (result > 0) {
|
||||
totalAmount = cappedAmount;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user