提前部分结清只能发起一次,校验修改

This commit is contained in:
zzk 2022-06-08 18:18:30 +08:00
parent 7dcab78ecb
commit f62f0ef114

View File

@ -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();