...
|
...
|
@@ -178,6 +178,19 @@ public class TopicServiceImpl implements ITopicService { |
|
|
return rsp;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<TopicRespBo> selectAllTopic() {
|
|
|
List<TopicRespBo> rsp = Lists.newArrayList();
|
|
|
List<GrassTopic> topicList = grassTopicDAO.selectUsingTopics();
|
|
|
topicList.forEach(grassTopic -> {
|
|
|
TopicRespBo rspbo = new TopicRespBo();
|
|
|
rspbo.setId(grassTopic.getId());
|
|
|
rspbo.setTopicName(grassTopic.getTopicName());
|
|
|
rsp.add(rspbo);
|
|
|
});
|
|
|
return rsp;
|
|
|
}
|
|
|
|
|
|
//转换
|
|
|
private List<TopicRespBo> convertTopicRespBo(List<GrassTopic> sourceList) {
|
|
|
if(CollectionUtils.isEmpty(sourceList)){
|
...
|
...
|
|