|
@@ -1,5 +1,6 @@
|
|
|
package com.tzld.longarticle.recommend.server;
|
|
|
|
|
|
+import com.ctrip.framework.apollo.spring.annotation.ApolloJsonValue;
|
|
|
import com.tzld.longarticle.recommend.server.mapper.aigc.AigcBaseMapper;
|
|
|
import com.tzld.longarticle.recommend.server.mapper.longArticle.LongArticleBaseMapper;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.CrawlerContent;
|
|
@@ -33,6 +34,11 @@ public class XxlJobTest {
|
|
|
@Resource
|
|
|
private ArticleCategoryRepository articleCategoryRepository;
|
|
|
|
|
|
+ @ApolloJsonValue("${cold.pool.produce.planId:[\"20240802021606053813696\", \"20240802080355355308981\",\n" +
|
|
|
+ "\"20240805154433785506170\", \"20240805154359027876170\", \"20241024100016206421084\", " +
|
|
|
+ "\"20241030070010871546586\"]}")
|
|
|
+ private static List<String> producePlanIds;
|
|
|
+
|
|
|
@Test
|
|
|
public void test() {
|
|
|
List<String> planIds = Arrays.asList("20240804003153130851174", "20240802171417146947657", "20240802143345289374071");
|
|
@@ -58,8 +64,6 @@ public class XxlJobTest {
|
|
|
|
|
|
@Test
|
|
|
public void articleCategoryTest() {
|
|
|
- List<String> producePlanIds = Arrays.asList("20240802021606053813696", "20240802080355355308981",
|
|
|
- "20240805154433785506170", "20240805154359027876170", "20241024100016206421084", "20241030070010871546586");
|
|
|
List<ProducePlanExeRecord> produceContentList = aigcBaseMapper.getAllByProducePlanId(producePlanIds);
|
|
|
List<String> channelContentIds = produceContentList.stream().map(ProducePlanExeRecord::getChannelContentId).distinct().collect(Collectors.toList());
|
|
|
List<ArticleCategory> articleCategoryList = articleCategoryRepository.getAllByChannelContentIdIn(channelContentIds);
|