|
@@ -66,7 +66,7 @@ public class RepalChangeRecordServiceImpl extends ServiceImpl<RepalChangeRecordM
|
|
|
RepalBill repalBill = repalBillService.getById(repalChangeRecord.getRepalBillId());
|
|
|
if (dto.getMoney().compareTo(repalChangeRecord.getTransMoney()) > 0) {
|
|
|
if (dto.getMoney().subtract(repalChangeRecord.getTransMoney()).compareTo(repalBill.getReceivable()) > 0) {
|
|
|
- throw new CommonException(CodeMsg.FAILED, "金额错误");
|
|
|
+ throw new CommonException(CodeMsg.FAILED, "付款金额不能大于应付金额");
|
|
|
}
|
|
|
}
|
|
|
List<RepalChangeRecord> recordList = this.list(Wrappers.lambdaQuery(RepalChangeRecord.class)
|