1.修改付款申请商务条件空指针异常。

This commit is contained in:
zhangbb 2018-08-06 08:12:03 +08:00
parent 142d305907
commit 625050244a

View File

@ -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"},