This commit is contained in:
luojian 2018-07-23 20:25:24 +08:00
parent c5d2289273
commit f35e362d4c
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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); //如果是新增用户设置初始密码

View File

@ -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);