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