|
|
@@ -356,6 +356,11 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
} else if (in.getType() == UserType.ORGANIZATION.getCode()) {
|
|
|
if (userMapper.checkUser("", in.getName(), "", in.getType(), null, null).size() > 0)
|
|
|
throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_EXIST, in.getName(), ""));
|
|
|
+ UserMid um=new UserMid();
|
|
|
+ um.setAid(user.getAid());
|
|
|
+ um.setUid(uid);
|
|
|
+ um.setChannelType(in.getChannelType());
|
|
|
+ userMidMapper.insertSelective(um);
|
|
|
// 创建企业认证信息
|
|
|
OrganizationIdentity oi = new OrganizationIdentity();
|
|
|
oi.setUnitName(in.getName());
|
|
|
@@ -384,11 +389,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
un.setUid(user.getId());
|
|
|
un.setName(user.getNickname());
|
|
|
userNamesMapper.insertSelective(un);
|
|
|
- UserMid um=new UserMid();
|
|
|
- um.setAid(user.getAid());
|
|
|
- um.setUid(uid);
|
|
|
- um.setChannelType(in.getChannelType());
|
|
|
- userMidMapper.insertSelective(um);
|
|
|
+
|
|
|
// 新增企业联系人
|
|
|
OrganizationContactBook cob = new OrganizationContactBook();
|
|
|
cob.setAid(TokenManager.getAdminId());
|
|
|
@@ -2136,8 +2137,6 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
if (user.getNewChannel()==1){
|
|
|
return false;
|
|
|
}
|
|
|
- }else {
|
|
|
-
|
|
|
}
|
|
|
List<String > roles=adminMapper.getAdminRoleListByAid(aid);
|
|
|
for (String role : roles) {
|