|
@@ -422,6 +422,11 @@ public class AdPlanConfController {
|
|
|
adPlanCreative.setCreativeText(request.getCreativeText());
|
|
adPlanCreative.setCreativeText(request.getCreativeText());
|
|
|
adPlanCreative.setImageId(0L);
|
|
adPlanCreative.setImageId(0L);
|
|
|
adPlanCreative.setVideoId(0L);
|
|
adPlanCreative.setVideoId(0L);
|
|
|
|
|
+ if (creativeFile.getFileType().equals("image")) {
|
|
|
|
|
+ adPlanCreative.setImageId(Long.valueOf(creativeFile.getAssetId()));
|
|
|
|
|
+ } else if (creativeFile.getFileType().equals("video")) {
|
|
|
|
|
+ adPlanCreative.setVideoId(Long.valueOf(creativeFile.getAssetId()));
|
|
|
|
|
+ }
|
|
|
adPlanCreative.setBrandImageId(0L);
|
|
adPlanCreative.setBrandImageId(0L);
|
|
|
adPlanCreative.setBrandName(request.getBrandName());
|
|
adPlanCreative.setBrandName(request.getBrandName());
|
|
|
adPlanCreative.setBrandImageUrl(request.getBrandImageFile().getFileUrl());
|
|
adPlanCreative.setBrandImageUrl(request.getBrandImageFile().getFileUrl());
|