From f62f0ef1141cf3028b1368a6891f522d6ebb9563 Mon Sep 17 00:00:00 2001 From: zzk Date: Wed, 8 Jun 2022 18:18:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=89=8D=E9=83=A8=E5=88=86=E7=BB=93?= =?UTF-8?q?=E6=B8=85=E5=8F=AA=E8=83=BD=E5=8F=91=E8=B5=B7=E4=B8=80=E6=AC=A1?= =?UTF-8?q?,=E6=A0=A1=E9=AA=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tenwa/voucher/CreateVoucherProcess/EarlyContract.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_core/com/tenwa/voucher/CreateVoucherProcess/EarlyContract.java b/src_core/com/tenwa/voucher/CreateVoucherProcess/EarlyContract.java index 01e5ec8ad..717846855 100644 --- a/src_core/com/tenwa/voucher/CreateVoucherProcess/EarlyContract.java +++ b/src_core/com/tenwa/voucher/CreateVoucherProcess/EarlyContract.java @@ -355,7 +355,7 @@ public class EarlyContract { Transaction Sqlca = null; try { Sqlca = Transaction.createTransaction(tx); - Countnum = Sqlca.getString("select count(*) from (select lrp.CONTRACT_ID,lrp.PLAN_LIST,lrp.RENT - ifnull(lri.RENT,0) as RENT,lrp.CORPUS - ifnull(lri.CORPUS,0) as CORPUS,lrp.INTEREST - ifnull(lri.INTEREST,0) as INTEREST from lc_rent_plan lrp left join (select CONTRACT_ID,PLAN_LIST,sum(RENT) as RENT,sum(CORPUS) as CORPUS,sum(INTEREST) as INTEREST from lc_rent_income group by CONTRACT_ID,PLAN_LIST ) lri on lrp.CONTRACT_ID = lri.CONTRACT_ID and lrp.PLAN_LIST = lri.PLAN_LIST where lri.CORPUS <> 0) t where t.CORPUS >0 and t.CONTRACT_ID = '"+contractId+"'"); + Countnum = Sqlca.getString("select count(*) from lc_rent_plan where CONTRACT_ID = '"+contractId+"' and MEMO = '²؟·ض½لاه' "); }catch(Exception e) { try { Sqlca.rollback();