|
@@ -133,6 +133,11 @@ public class CommunicationServiceImpl implements CommunicationService {
|
|
|
communication.setPublisherId(userId);
|
|
communication.setPublisherId(userId);
|
|
|
communication.setPublishTime(new Date());
|
|
communication.setPublishTime(new Date());
|
|
|
|
|
|
|
|
|
|
+ // 添加用户的姓名
|
|
|
|
|
+ UserVO userVO = userService.findUserById(userId);
|
|
|
|
|
+ communication.setPublisherName(userVO.getName());
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
communicationRepository.save(communication);
|
|
communicationRepository.save(communication);
|
|
|
|
|
|
|
|
return communicationMapper.toCommunicationVO(communication,userId);
|
|
return communicationMapper.toCommunicationVO(communication,userId);
|