diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index 50e43e52c..326ff7a42 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -26,6 +26,7 @@ String RightType= CurPage.getParameter("RightType"); String calType = CurPage.getParameter("calType"); String carAttributes = CurPage.getParameter("carAttributes"); + String projectId=CurPage.getParameter("ProjectId"); //判断是否为汽车业务 boolean isCarProduct = "004".equals(productId) ? false : true; /*获取参数*/ @@ -171,11 +172,11 @@ //获取产品名称 BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID") .setParameter("productID", productId).getSingleResult(false); - String productName = bo.getAttribute("typename").getString(); + String productName = (bo==null)?"":bo.getAttribute("typename").getString(); //获取对应车辆指导价 - BizObject bo1 = JBOFactory.createBizObjectQuery(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME,"flowunid=:flowunid") - .setParameter("flowunid",flowunid).getSingleResult(false); - String nowTotal = bo1.getAttribute("NOW_TOTAL").getString(); + BizObject bo1 = JBOFactory.createBizObjectQuery(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME,"PROJECT_ID=:projectId") + .setParameter("projectId",projectId).getSingleResult(false); + String nowTotal = (bo1==null)?"":bo1.getAttribute("NOW_TOTAL").getString(); String sButtons[][] = { //{"true","All","Button","重置","重置","reloadSelf()","","","",""}, {"true","","Button","租金测算","租金测算","saveRecord()","","","","btn_icon_save"},