bug
This commit is contained in:
parent
c5d2289273
commit
f35e362d4c
@ -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);
|
||||
|
||||
@ -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); //如果是新增用户,设置初始密码
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user