|
@@ -114,6 +114,10 @@ public class CreateCarouselPlanUtil {
|
|
|
bindingIds = ArrayUtil.insert(bindingIds,0, new Long[]{ Long.valueOf(SubwayConstant.AD_PUBLIC_BENEFIT_MATERIAL) });
|
|
|
}
|
|
|
|
|
|
+ List<MaterialLscUrlDto> list123 = new ArrayList<>();
|
|
|
+ dayDto.getAdMaterials123().forEach(item->{
|
|
|
+ list123.add(new MaterialLscUrlDto().setId(item.getId()).setConvertedFileUrl(item.getConvertedFileUrl()));
|
|
|
+ });
|
|
|
// 存入redis
|
|
|
CarouselPlanRedisDto adCarouselPlanRedisDto = new CarouselPlanRedisDto();
|
|
|
adCarouselPlanRedisDto.setAdMaterialsMorning(adMaterialsMorning)
|
|
@@ -122,7 +126,8 @@ public class CreateCarouselPlanUtil {
|
|
|
.setImageIds(imageIds)
|
|
|
.setStationStartDate(dayDto.getStationStartDate())
|
|
|
.setStationEndDate(dayDto.getStationEndDate())
|
|
|
- .setImageBindingIds(bindingIds);
|
|
|
+ .setImageBindingIds(bindingIds)
|
|
|
+ .setAdMaterials123(list123);
|
|
|
redisCache.setCacheObject(SubwayConstant.AD_CAROUSEL_PLAN_KEY + carouselPlan.getSubwayId().toString(), adCarouselPlanRedisDto);
|
|
|
|
|
|
}
|