|
|
@ -189,7 +189,8 @@ public class TopicServiceImpl extends BaseServiceImpl<GroupTopicDao, TopicEntity |
|
|
|
return new Result().error("社群状态异常,无法发布话题"); |
|
|
|
} |
|
|
|
TopicEntity entity = ConvertUtils.sourceToTarget(formDto, TopicEntity.class); |
|
|
|
entity.setGroupCategory(groupDTO.getCategoryCode()); |
|
|
|
entity.setCategoryCode(groupDTO.getCategoryCode()); |
|
|
|
entity.setSectionCode(groupDTO.getSectionCode()); |
|
|
|
if (insert(entity)) { |
|
|
|
// 保存图片
|
|
|
|
topicImgService.saveImages(formDto.getImages(), entity.getId(), TopicImageConstant.TYPE_IMAGE_BIZ_TOPIC); |
|
|
|