|
|
|
@ -138,8 +138,24 @@ public class EnterpriseController {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//获取标签
|
|
|
|
|
final List<TagLibraryDO> tagLibraryDOS = tagLibraryService.listByEnterpriseId(enterprise.getId()); |
|
|
|
|
enterprise.setTagList(tagLibraryDOS.stream().map(item->item.getTagName()).collect(Collectors.toList())); |
|
|
|
|
// final List<TagLibraryDO> tagLibraryDOS = tagLibraryService.listByEnterpriseId(enterprise.getId());
|
|
|
|
|
// enterprise.setTagList(tagLibraryDOS.stream().map(item->item.getTagName()).collect(Collectors.toList()));
|
|
|
|
|
|
|
|
|
|
// 获取标签
|
|
|
|
|
List<TagLibraryDO> tagLibraryDOS = tagLibraryService.listByEnterpriseId(enterprise.getId()); |
|
|
|
|
if (tagLibraryDOS != null) { |
|
|
|
|
enterprise.setTagList(tagLibraryDOS.stream() |
|
|
|
|
.map(TagLibraryDO::getTagName) |
|
|
|
|
.collect(Collectors.toList())); |
|
|
|
|
} else { |
|
|
|
|
// 处理 tagLibraryDOS 为 null 的情况,这里可以设置一个空列表
|
|
|
|
|
enterprise.setTagList(Collections.emptyList()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//通过userID获取专管人
|
|
|
|
|
enterprise.setInviterName(adminUserService.getUser(Long.valueOf(enterprise.getUserId())).getNickname()); |
|
|
|
|
|
|
|
|
|
//获取资质
|
|
|
|
|
LambdaQueryWrapper<EnterpriseQualificationDO> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
@ -163,7 +179,7 @@ public class EnterpriseController {
|
|
|
|
|
|
|
|
|
|
enterprise.setQualificationList(enterpriseQualificationList); |
|
|
|
|
} |
|
|
|
|
//获取企业标签
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return success(BeanUtils.toBean(enterprise, EnterpriseRespVO.class)); |
|
|
|
|
} |
|
|
|
|