|
|
@ -29,6 +29,7 @@ import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.comment.EpdcCommentsAndAttitudeFromTopicFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.EventCommentDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.EventCommentUserAttitudeDTO; |
|
|
|
import com.elink.esua.epdc.dto.constant.GroupConstant; |
|
|
|
import com.elink.esua.epdc.dto.constant.GroupNoticeConstant; |
|
|
|
import com.elink.esua.epdc.dto.constant.TopicImageConstant; |
|
|
|
import com.elink.esua.epdc.dto.enums.GroupStateEnum; |
|
|
@ -145,6 +146,7 @@ public class TopicServiceImpl extends BaseServiceImpl<TopicDao, TopicEntity> imp |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void save(TopicDTO dto) { |
|
|
|
TopicEntity entity = ConvertUtils.sourceToTarget(dto, TopicEntity.class); |
|
|
|
entity.setGroupCategory(GroupConstant.PROPERTY_GROUP_CATEGORY); |
|
|
|
insert(entity); |
|
|
|
} |
|
|
|
|
|
|
@ -171,6 +173,7 @@ public class TopicServiceImpl extends BaseServiceImpl<TopicDao, TopicEntity> imp |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result saveTopic(TopicSubmitFormDTO formDto) { |
|
|
|
TopicEntity entity = ConvertUtils.sourceToTarget(formDto, TopicEntity.class); |
|
|
|
entity.setGroupCategory(GroupConstant.PROPERTY_GROUP_CATEGORY); |
|
|
|
if (insert(entity)) { |
|
|
|
// 保存图片
|
|
|
|
topicImgService.saveImages(formDto.getImages(), entity.getId(), TopicImageConstant.TYPE_IMAGE_BIZ_TOPIC); |
|
|
@ -400,11 +403,10 @@ public class TopicServiceImpl extends BaseServiceImpl<TopicDao, TopicEntity> imp |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 话题转议题校验 |
|
|
|
* |
|
|
|
* @params [topicDto, userId] |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|
|
|
* @params [topicDto, userId] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2019/11/8 11:16 |
|
|
|
*/ |
|
|
@ -433,11 +435,10 @@ public class TopicServiceImpl extends BaseServiceImpl<TopicDao, TopicEntity> imp |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 拷贝评论、评论的支持反对到事件 |
|
|
|
* |
|
|
|
* @params [formDto] |
|
|
|
* @return void |
|
|
|
* @params [formDto] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2019/11/13 11:18 |
|
|
|
*/ |
|
|
@ -454,11 +455,10 @@ public class TopicServiceImpl extends BaseServiceImpl<TopicDao, TopicEntity> imp |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 发送消息 |
|
|
|
* |
|
|
|
* @params [issueId, userId] |
|
|
|
* @return void |
|
|
|
* @params [issueId, userId] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2019/11/26 15:04 |
|
|
|
*/ |
|
|
@ -491,11 +491,10 @@ public class TopicServiceImpl extends BaseServiceImpl<TopicDao, TopicEntity> imp |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 组织机构信息处理 |
|
|
|
* |
|
|
|
* @params [dto, topicList] |
|
|
|
* @return java.util.List<com.elink.esua.epdc.modules.topic.entity.TopicEntity> |
|
|
|
* @params [dto, topicList] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2020/3/7 2:14 |
|
|
|
*/ |
|
|
|