用户信息,账号随机规则更新

main
cheney 11 months ago
parent c8bfd27b3a
commit a3675924b2
  1. 12
      nakadai/src/main/java/com/huoran/nakadai/service/impl/PlatformTeamAccountServiceImpl.java
  2. 11
      users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java

@ -159,7 +159,9 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl<PlatformTeamAcco
// data.put("teamName",teamName);
}
}
String randomNumbers = cn.hutool.core.util.RandomUtil.randomNumbers(6);
String randomNumber5 = cn.hutool.core.util.RandomUtil.randomNumbers(5);
String randomNumber6 = cn.hutool.core.util.RandomUtil.randomNumbers(6);
String randomNumber7 = cn.hutool.core.util.RandomUtil.randomNumbers(7);
Integer accountId ;
String userName = "";
@ -169,18 +171,18 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl<PlatformTeamAcco
if (StringUtils.isNotBlank(appletCallbackReq.getOrganizationName())){
userName = appletCallbackReq.getOrganizationName();
}else {
userName = "幼儿园" + randomNumbers;
userName = "幼儿园" + randomNumber5;
}
break;
case 6:
if (StringUtils.isNotBlank(appletCallbackReq.getOrganizationName())){
userName = appletCallbackReq.getOrganizationName();
}else {
userName = "供应商" + randomNumbers;
userName = "供应商" + randomNumber6;
}
break;
case 7:
userName = "个人" + randomNumbers;
userName = "个人" + randomNumber7;
break;
}
@ -189,7 +191,7 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl<PlatformTeamAcco
// 如果平台ID不是7,添加供应商/幼儿园信息和团队信息,默认添加个人端信息
if (appletCallbackReq.getPlatformId() != 7) {
//添加个人端信息
String personalUserName = "个人" + randomNumbers;
String personalUserName = "个人" + randomNumber7;
addUserInfo(personalUserName, 7, appletCallbackReq.getOpenId(), appletCallbackReq.getPhone());
// 添加供应商/幼儿园信息

@ -409,9 +409,14 @@ public class HrUserAccountServiceImpl extends ServiceImpl<HrUserAccountMapper, H
List<HrUserAccount> userAccountList = hrUserAccountMapper.selectList(new QueryWrapper<HrUserAccount>()
.eq("app_open_id", openId));
//查询用户信息
HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userAccountList.get(0).getUserId());
hrUserInfo.setPhone(userAccountList.get(0).getPhone());
//查询个人端用户信息
Integer userId = null;
for (HrUserAccount hrUserAccount : userAccountList) {
if (hrUserAccount.getPlatformId().equals("7")){
userId = hrUserAccount.getUserId();
}
}
HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userId);
hrUserInfo.setAuthentication("未认证");
UserAuthenticationInformation authenticationInformation = userAuthenticationInformationMapper.selectOne(

Loading…
Cancel
Save