dev
parent
6cbdbaeaaa
commit
dfec0eccca
|
|
@ -223,7 +223,7 @@ public class RefundDetailSyncService extends BaseSyncService {
|
|||
return Result.failed("未找到客户预付费信息");
|
||||
}
|
||||
|
||||
if (prepayCustomer.getSurplus() == null || amount.subtract(prepayCustomer.getSurplus()).compareTo(new BigDecimal("0")) < 0) {
|
||||
if (prepayCustomer.getSurplus() == null || prepayCustomer.getSurplus().subtract(amount).compareTo(new BigDecimal("0")) < 0) {
|
||||
return Result.failed("退费金额不能大于账户余额");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue