|
|
@@ -56,17 +56,17 @@ public class BytedanceProductUpdateServiceImpl implements IBytedanceProductUpdat
|
|
|
|
|
|
|
|
|
|
|
|
-// log.info("免费商品库更新中...");
|
|
|
-// List<AigcProductPlatform> iaaPlatformList = bytedanceProductUpdateMapper.getIAAPlatformList(); //商品库列表
|
|
|
-// List<AigcProductAlbum> iaaVideoList = bytedanceProductUpdateMapper.getIAAVideoList(); //剧目列表
|
|
|
-// List<JSONObject> iaaProductTypeEnums = bytedanceProductUpdateMapper.getIAAProductTypeEnums(); //商品类型
|
|
|
-// Map<String, JSONObject> iaaProductTypeMap = iaaProductTypeEnums.stream().collect(Collectors.toMap(
|
|
|
-// obj -> obj.getString("third_type_name"),
|
|
|
-// obj -> obj,
|
|
|
-// (existing, replacement) -> replacement
|
|
|
-// ));
|
|
|
-// runProductTask(iaaPlatformList, iaaVideoList, iaaProductTypeMap, errors, BusinessType.IAA);
|
|
|
-// log.info("免费商品库更新完成");
|
|
|
+ log.info("免费商品库更新中...");
|
|
|
+ List<AigcProductPlatform> iaaPlatformList = bytedanceProductUpdateMapper.getIAAPlatformList(); //商品库列表
|
|
|
+ List<AigcProductAlbum> iaaVideoList = bytedanceProductUpdateMapper.getIAAVideoList(); //剧目列表
|
|
|
+ List<JSONObject> iaaProductTypeEnums = bytedanceProductUpdateMapper.getIAAProductTypeEnums(); //商品类型
|
|
|
+ Map<String, JSONObject> iaaProductTypeMap = iaaProductTypeEnums.stream().collect(Collectors.toMap(
|
|
|
+ obj -> obj.getString("third_type_name"),
|
|
|
+ obj -> obj,
|
|
|
+ (existing, replacement) -> replacement
|
|
|
+ ));
|
|
|
+ runProductTask(iaaPlatformList, iaaVideoList, iaaProductTypeMap, errors, BusinessType.IAA);
|
|
|
+ log.info("免费商品库更新完成");
|
|
|
|
|
|
|
|
|
errors.removeIf(s -> s.contains("剧目不可用"));
|