Browse Source

兴趣群的话题

hotfix/yujt_opt
zhangyuan 5 years ago
parent
commit
a2e300bc7a
  1. 10
      epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/topic/entity/TopicEntity.java
  2. 3
      epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/topic/service/impl/TopicServiceImpl.java

10
epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/topic/entity/TopicEntity.java

@ -176,4 +176,14 @@ public class TopicEntity extends BaseEpdcEntity {
*/ */
private Integer browseNum; private Integer browseNum;
/**
* 所属版块编码
*/
private String sectionCode;
/**
* 社群类别编码
*/
private String categoryCode;
} }

3
epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/topic/service/impl/TopicServiceImpl.java

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

Loading…
Cancel
Save