|
|
@@ -1,5 +1,6 @@
|
|
|
package com.uas.platform.b2c.common.account.service.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.platform.b2c.common.account.dao.EnterpriseDao;
|
|
|
import com.uas.platform.b2c.common.account.dao.UserBaseInfoDao;
|
|
|
@@ -162,7 +163,10 @@ public class EnterpriseServiceImpl implements EnterpriseService{
|
|
|
userView.setMobile(user.getUserTel());
|
|
|
userView.setEmail(user.getUserEmail());
|
|
|
userView.setIdCard(user.getUserIdcode());
|
|
|
- userView.setImId(user.getUserIMId().toString());
|
|
|
+ Long imid = user.getUserIMId();
|
|
|
+ if (imid != null) {
|
|
|
+ userView.setImId(imid.toString());
|
|
|
+ }
|
|
|
//封装注册企业信息;
|
|
|
detail.setSpaceName(enterprise.getName());
|
|
|
detail.setCorporation(enterprise.getLawPerson());
|
|
|
@@ -187,6 +191,8 @@ public class EnterpriseServiceImpl implements EnterpriseService{
|
|
|
|
|
|
String result = null;
|
|
|
try {
|
|
|
+ JSONObject data = JSON.parseObject(JSON.toJSONString(detail));
|
|
|
+ String userSpa = data.toJSONString();
|
|
|
AccountUtils.register(detail);
|
|
|
} catch (Exception e) {
|
|
|
return new ResultMap(CodeType.SYSTEM_ERROR, "账户中心异常,注册失败");
|