|
|
@@ -199,7 +199,7 @@ public class UserService {
|
|
199
|
199
|
.withUser_type(UserTypeEnum.MERCHANT.ordinal())
|
|
200
|
200
|
.withCreate_time(currentTime)
|
|
201
|
201
|
.build());
|
|
202
|
|
- userRelateMapper.updateByUid(UserTypeEnum.MERCHANT.ordinal(), row.getSpread_uid());
|
|
|
202
|
+ userRelateMapper.updateByUidList(UserTypeEnum.MERCHANT.ordinal(), row.getUid_concat());
|
|
203
|
203
|
|
|
204
|
204
|
userRelateMapper.selectByUid(row.getSpread_uid()).stream().forEach(innerRow -> {
|
|
205
|
205
|
resultList.add(UserCount.UserCountBuilder.anUserCount()
|
|
|
@@ -234,7 +234,7 @@ public class UserService {
|
|
234
|
234
|
.withUser_type(UserTypeEnum.CHANNEL.ordinal())
|
|
235
|
235
|
.withCreate_time(currentTime)
|
|
236
|
236
|
.build());
|
|
237
|
|
- userRelateMapper.updateByUid(UserTypeEnum.CHANNEL.ordinal(), row.getSpread_uid());
|
|
|
237
|
+ userRelateMapper.updateByUidList(UserTypeEnum.CHANNEL.ordinal(), row.getUid_concat());
|
|
238
|
238
|
|
|
239
|
239
|
userRelateMapper.selectByUid(row.getSpread_uid()).stream().forEach(innerRow -> {
|
|
240
|
240
|
resultList.add(UserCount.UserCountBuilder.anUserCount()
|
|
|
@@ -269,7 +269,7 @@ public class UserService {
|
|
269
|
269
|
.withUser_type(UserTypeEnum.AGENT.ordinal())
|
|
270
|
270
|
.withCreate_time(currentTime)
|
|
271
|
271
|
.build());
|
|
272
|
|
- userRelateMapper.updateByUid(UserTypeEnum.AGENT.ordinal(), row.getSpread_uid());
|
|
|
272
|
+ userRelateMapper.updateByUidList(UserTypeEnum.AGENT.ordinal(), row.getUid_concat());
|
|
273
|
273
|
|
|
274
|
274
|
userRelateMapper.selectByUid(row.getSpread_uid()).stream().forEach(innerRow -> {
|
|
275
|
275
|
resultList.add(UserCount.UserCountBuilder.anUserCount()
|
|
|
@@ -311,7 +311,7 @@ public class UserService {
|
|
311
|
311
|
|
|
312
|
312
|
private Integer countOfChildren(UserDto userDto, List<UserDto> list){
|
|
313
|
313
|
|
|
314
|
|
- if(userDto == null || CollectionUtils.isEmpty(list) || userDto.getSpread_uid().equals(0)){
|
|
|
314
|
+ if(userDto == null || CollectionUtils.isEmpty(list)){
|
|
315
|
315
|
return 0;
|
|
316
|
316
|
}
|
|
317
|
317
|
|
|
|
@@ -401,9 +401,9 @@ public class UserService {
|
|
401
|
401
|
UserVo userVo = userMapper.selectByAccountForSimple(param.getPhone());
|
|
402
|
402
|
Objects.requireNonNull(userVo, "该手机号未在【储蓄宝App】内注册,请先注册后再绑定");
|
|
403
|
403
|
|
|
404
|
|
- if(userVo.getId().equals(baseUser.getId())){
|
|
405
|
|
- throw new TDBAException("运营商不可添加自身为团队成员");
|
|
406
|
|
- }
|
|
|
404
|
+// if(userVo.getId().equals(baseUser.getId())){
|
|
|
405
|
+// throw new TDBAException("运营商不可添加自身为团队成员");
|
|
|
406
|
+// }
|
|
407
|
407
|
|
|
408
|
408
|
UserBind oldUserBind = userBindMapper.selectByUid(userVo.getId());
|
|
409
|
409
|
if(oldUserBind != null){
|