From 625050244acc171a5c1c241287c1b388a459d47c Mon Sep 17 00:00:00 2001 From: zhangbb Date: Mon, 6 Aug 2018 08:12:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E4=BB=98=E6=AC=BE=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=95=86=E5=8A=A1=E6=9D=A1=E4=BB=B6=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=E5=BC=82=E5=B8=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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"},