diff --git a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagServiceImpl.java b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagServiceImpl.java index ce703e9f18..cbfba74bb5 100644 --- a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagServiceImpl.java +++ b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagServiceImpl.java @@ -24,6 +24,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; +import javax.annotation.PostConstruct; import java.util.*; import java.util.stream.Collectors; @@ -46,6 +47,12 @@ public class TagServiceImpl implements TagService { @Autowired private ArticlePublishRangeDao articlePublishRangeDao; + @PostConstruct + public void initDataToRedis(){ + //加载党建声音标签到redis + this.initTag(new InitTagFormDTO()); + } + /** * @Description 已发布列表页的标签——政府端 * @param tokenDto