|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.chelvc.cloud.user.client.UserClient;
|
|
import com.chelvc.cloud.user.client.UserClient;
|
|
|
|
+import com.chelvc.cloud.user.client.dto.BaseUserDTO;
|
|
import com.chelvc.cloud.user.client.dto.UserDTO;
|
|
import com.chelvc.cloud.user.client.dto.UserDTO;
|
|
import com.chelvc.cloud.vehicle.client.constant.PlatformConstant;
|
|
import com.chelvc.cloud.vehicle.client.constant.PlatformConstant;
|
|
import com.chelvc.cloud.vehicle.client.dto.MerchantDTO;
|
|
import com.chelvc.cloud.vehicle.client.dto.MerchantDTO;
|
|
@@ -223,15 +224,15 @@ public class UserInviteServiceImpl extends ServiceImpl<UserInviteMapper, UserInv
|
|
return dto;
|
|
return dto;
|
|
}
|
|
}
|
|
List<Long> userList = records.stream().map(TeamDetailsDTO::getUserId).collect(Collectors.toList());
|
|
List<Long> userList = records.stream().map(TeamDetailsDTO::getUserId).collect(Collectors.toList());
|
|
- List<UserDTO> usersLists = this.userService.listUsers(userList);
|
|
|
|
- Map<Long, String> userMap = usersLists.stream().collect(Collectors.toMap(UserDTO::getId, UserDTO::getNickname));
|
|
|
|
- Map<Long, String> mobileMap = usersLists.stream().collect(Collectors.toMap(UserDTO::getId, UserDTO::getNickname));
|
|
|
|
|
|
+ List<BaseUserDTO> usersLists = this.userService.listBaseInfoUsers(userList);
|
|
|
|
+ Map<Long, String> userMap = usersLists.stream().collect(Collectors.toMap(BaseUserDTO::getId, BaseUserDTO::getNickname));
|
|
|
|
+ //Map<Long, String> mobileMap = usersLists.stream().collect(Collectors.toMap(UserDTO::getId, UserDTO::getNickname));
|
|
Map<Long, String> map = new HashMap<>();
|
|
Map<Long, String> map = new HashMap<>();
|
|
if(param.getType() == null){
|
|
if(param.getType() == null){
|
|
List<Long> userIds = records.stream().filter(e -> e.getSourceType() == 1).map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|
|
List<Long> userIds = records.stream().filter(e -> e.getSourceType() == 1).map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|
|
- List<UserDTO> users = this.userService.listUsers(userIds);
|
|
|
|
|
|
+ List<BaseUserDTO> users = this.userService.listBaseInfoUsers(userIds);
|
|
if(!CollectionUtils.isEmpty(users)){
|
|
if(!CollectionUtils.isEmpty(users)){
|
|
- map = users.stream().collect(Collectors.toMap(UserDTO::getId, UserDTO::getNickname));
|
|
|
|
|
|
+ map = users.stream().collect(Collectors.toMap(BaseUserDTO::getId, BaseUserDTO::getNickname));
|
|
}
|
|
}
|
|
List<Long> merchantIds = records.stream().filter(e -> e.getSourceType() == 2).map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|
|
List<Long> merchantIds = records.stream().filter(e -> e.getSourceType() == 2).map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|
|
List<MerchantDTO> merchants = this.merchantService.getMerchantByIds(merchantIds);
|
|
List<MerchantDTO> merchants = this.merchantService.getMerchantByIds(merchantIds);
|
|
@@ -240,9 +241,9 @@ public class UserInviteServiceImpl extends ServiceImpl<UserInviteMapper, UserInv
|
|
}
|
|
}
|
|
} else if(param.getType() == 1){
|
|
} else if(param.getType() == 1){
|
|
List<Long> ids = records.stream().map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|
|
List<Long> ids = records.stream().map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|
|
- List<UserDTO> users = this.userService.listUsers(ids);
|
|
|
|
|
|
+ List<BaseUserDTO> users = this.userService.listBaseInfoUsers(ids);
|
|
if(!CollectionUtils.isEmpty(users)){
|
|
if(!CollectionUtils.isEmpty(users)){
|
|
- map = users.stream().collect(Collectors.toMap(UserDTO::getId, UserDTO::getNickname));
|
|
|
|
|
|
+ map = users.stream().collect(Collectors.toMap(BaseUserDTO::getId, BaseUserDTO::getNickname));
|
|
}
|
|
}
|
|
} else if(param.getType() == 2){
|
|
} else if(param.getType() == 2){
|
|
List<Long> ids = records.stream().map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|
|
List<Long> ids = records.stream().map(TeamDetailsDTO::getInviteUserId).collect(Collectors.toList());
|