修改提前结清
This commit is contained in:
parent
5a0f30afcf
commit
55c494032f
@ -142,7 +142,7 @@ public class RentCalHelper {
|
||||
// if(payDayAdjust.compareTo(min) >= 0 && payDayAdjust.compareTo(max) <= 0){
|
||||
if(payDayAdjust.compareTo(max) <= 0){
|
||||
//约定终止日不能落在已汇款的租金计划的区间段
|
||||
checkSql = "select max(rp.plan_date) maxdate from LC_RENT_PLAN rp left join lc_rent_income ci on rp.id=ci.plan_id where ci.id is not null and rp.contract_id = ? and rp.payment_number=?";
|
||||
checkSql = "select max(rp.plan_date) maxdate from LC_RENT_PLAN rp left join lc_rent_income ci on rp.id=ci.plan_id where (rp.COLLECT_STATUS <> 'δÊÕ¿î' AND rp.COLLECT_STATUS IS NOT NULL AND LENGTH(rp.COLLECT_STATUS)>0 ) and ci.id is not null and rp.contract_id = ? and rp.payment_number=?";
|
||||
results = conn.executeQuery(checkSql, this.contractId,this.paymentnumber);
|
||||
String maxDate = results.get(0).get("maxdate");
|
||||
if(maxDate != null){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user