diff --git a/WebContent/Tenwa/Lease/Flow/Rent/CautionMoneyDeduction/VILCRentPlanForDeductionList.jsp b/WebContent/Tenwa/Lease/Flow/Rent/CautionMoneyDeduction/VILCRentPlanForDeductionList.jsp index 27a6e30a7..de6fa0a53 100644 --- a/WebContent/Tenwa/Lease/Flow/Rent/CautionMoneyDeduction/VILCRentPlanForDeductionList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Rent/CautionMoneyDeduction/VILCRentPlanForDeductionList.jsp @@ -8,9 +8,13 @@ String phaseNo = CurPage.getParameter("PhaseNo"); String flowunid = CurPage.getParameter("FlowUnid"); String rightType = CurPage.getParameter("RightType"); + String FlowNo = CurPage.getParameter("FlowNo"); String paymentNumber = JBOFactory.createBizObjectQuery(FLOW_BUSSINESS_OBJECT.CLASS_NAME, "flow_unid=:flowunid") .setParameter("flowunid", flowunid).getSingleResult(false).getAttribute("flow_key").getString(); ASObjectModel doTemp = new ASObjectModel("VILCRentPlanForDeductionList"); + if("CautionMoneyDeductionFlow".equals(FlowNo)){ + doTemp.appendJboWhere(" and O.plan_list =(select max(pl.plan_list) from jbo.app.tenwa.calc.VI_LC_RENT_PLAN pl WHERE pl.payment_number ='"+paymentNumber+"' AND (pl.rent_over > 0 OR pl.penalty_over > 0 ))"); + } ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "1"; //只读模式