From f35e362d4cfd8778b194d9c03868453378891b92 Mon Sep 17 00:00:00 2001 From: luojian Date: Mon, 23 Jul 2018 20:25:24 +0800 Subject: [PATCH] bug --- .../DistributorApproval/LDistributorAccountInfo.jsp | 2 +- .../awe/config/orguser/dwhandler/ChannelUserInfoHandler.java | 2 +- .../lease/flow/project/businessapply/AccountInfoManage.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorAccountInfo.jsp b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorAccountInfo.jsp index ce04a1e7f..da6f7826b 100644 --- a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorAccountInfo.jsp +++ b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorAccountInfo.jsp @@ -13,7 +13,7 @@ String sTempletNo = "LDistributorAccountInfo"; //模板号 // if(sTempletNo == null) sTempletNo = "LDistributorAccountInfo"; BizObject flow=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT","flow_unid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); - String DISTRIBUTOR_NO=flow.getAttribute("Flow_Key").getString(); + String DISTRIBUTOR_NO=flow!=null?flow.getAttribute("Flow_Key").getString():""; ASObjectModel doTemp = new ASObjectModel(sTempletNo); diff --git a/src/com/amarsoft/app/awe/config/orguser/dwhandler/ChannelUserInfoHandler.java b/src/com/amarsoft/app/awe/config/orguser/dwhandler/ChannelUserInfoHandler.java index d14689569..bc12de59a 100644 --- a/src/com/amarsoft/app/awe/config/orguser/dwhandler/ChannelUserInfoHandler.java +++ b/src/com/amarsoft/app/awe/config/orguser/dwhandler/ChannelUserInfoHandler.java @@ -49,7 +49,7 @@ public class ChannelUserInfoHandler extends CommonHandler { protected void beforeInsert(JBOTransaction tx, BizObject bo) throws Exception { //设置初始密码000000als - String sInitPwd = "al!"; + String sInitPwd = "al!"; String sPassword = MessageDigest.getDigestAsUpperHexString("MD5", sInitPwd); bo.setAttributeValue("Password",sPassword); //如果是新增用户,设置初始密码 diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java index d2b99a653..f0e00b9dd 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java @@ -71,7 +71,7 @@ public class AccountInfoManage { public String Checkbasicinfo(JBOTransaction tx) throws JBOException{ BizObjectManager bs = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME,tx); BizObject dgc = bs.createQuery("flowunid=:flowunid").setParameter("flowunid", this.getFlowunid()).getSingleResult(false); - String distributorName = dgc.getAttribute("DISTRIBUTOR_NAME").toString(); + String distributorName =dgc!=null?dgc.getAttribute("DISTRIBUTOR_NAME").toString():""; /*BizObjectManager bms = JBOFactory.getBizObjectManager(DISTRIBUTOR_ACCOUNT_TEMP.CLASS_NAME,tx); BizObject account = bms.newObject(); account.setAttributeValue("ACCOUNT", distributorName);