feat:人员null指针处理
This commit is contained in:
@@ -1217,6 +1217,9 @@ public class ShopServiceImpl implements ShopService {
|
||||
}
|
||||
|
||||
private List<UserDTO> convertToUserDTOs(List<EnterpriseUserDO> users) {
|
||||
if (CollectionUtils.isEmpty(users)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
//最多给10条数据
|
||||
return users.stream()
|
||||
.map(user -> new UserDTO(user.getName(), user.getMobile()))
|
||||
|
||||
Reference in New Issue
Block a user