From 6a221d4a9b0e90f8f40c2b9624d19d4ba9bf09df Mon Sep 17 00:00:00 2001 From: zhangbeibei Date: Thu, 25 Mar 2021 18:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=B5=E6=B4=BB=E4=BA=A7=E5=93=81=E6=B5=8B?= =?UTF-8?q?=E7=AE=97=E6=97=B6=EF=BC=8C=E5=8F=AF=E4=BB=A50=E5=88=A9?= =?UTF-8?q?=E7=8E=87=EF=BC=8C=E7=A7=9F=E9=87=91=E7=AD=89=E4=BA=8E=E6=9C=AC?= =?UTF-8?q?=E9=87=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java b/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java index efe0d301d..26072cc6b 100644 --- a/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java +++ b/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java @@ -92,8 +92,8 @@ public class CreateTransactionExecutor implements Transaction { String yearRate = bean.getCb().getYearRate(); this.preHandle(bean.getCb(),bean); checkYearRate( bean.getCb(), bean, new BigDecimal( bean.getCb().getYearRate() ) );//当初理解错误,成本利率和年利率不一样 - if(bean.getCb().getRentOrRate().equals("rent")&&new BigDecimal(bean.getCb().getIncomeNumber()).multiply(new BigDecimal(bean.getCb().getRentValue())).compareTo(new BigDecimal(bean.getCb().getCleanLeaseMoney()))<0){ - throw new BusinessException("按租金算年利率租金总和必须大于融资额"); + if(bean.getCb().getRentOrRate().equals("rent")&&new BigDecimal(bean.getCb().getIncomeNumber()).multiply(new BigDecimal(bean.getCb().getRentValue())).compareTo(new BigDecimal(bean.getCb().getCleanLeaseMoney()))<=0){ + throw new BusinessException("按租金算年利率租金总和不能小于融资额"); } bean.setProductType(productType); bean.getCb().setProductType(productType);