Prechádzať zdrojové kódy

批量应用添加 开屏广告,优化

zhaoxian 2 rokov pred
rodič
commit
1dc73a488f
13 zmenil súbory, kde vykonal 80 pridanie a 151 odobranie
  1. 2 6
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaiShouVideoGetController.java
  2. 7 88
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/entity/vo/KuaiShouVideoGetVo.java
  3. 1 1
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/KuaiShouVideoGetMapper.java
  4. 0 1
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouReportDailyMaterialMapper.xml
  5. 4 6
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouVideoGetMapper.xml
  6. 2 2
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/IKuaiShouVideoGetService.java
  7. 4 3
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaiShouVideoGetServiceImpl.java
  8. 14 5
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouBatchCampaignPreviewServiceImpl.java
  9. 21 31
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouBatchCreativePreviewServiceImpl.java
  10. 1 1
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/dimension/entity/KuaiShouDimensionCreative.java
  11. 2 2
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/dimension/service/impl/KuaiShouDimensionCreativeServiceImpl.java
  12. 21 4
      jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/dimension/service/impl/KuaiShouDimensionStrategyServiceImpl.java
  13. 1 1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/MaterialCutFrameController.java

+ 2 - 6
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaiShouVideoGetController.java

@@ -120,7 +120,6 @@ public class KuaiShouVideoGetController {
                                                              String startDate,
                                                              String endDate,
                                                              String materialType,
-                                                             String channelType,
                                                              String signatures,
                                                              String orderBy,
                                                              String photoName,
@@ -136,9 +135,6 @@ public class KuaiShouVideoGetController {
             if (Check.isNull(materialType)) {
                 throw new Exception("请传入素材类型");
             }
-            if (Check.isNull(channelType)) {
-                throw new Exception("请传入素材渠道");
-            }
             if (Check.isNull(orderBy)) {
                 throw new Exception("请传入排序方式");
             }
@@ -148,7 +144,7 @@ public class KuaiShouVideoGetController {
             requestMap.put("accountId", accountId);
             requestMap.put("orderBy", orderBy);
             requestMap.put("materialType", materialType);
-            requestMap.put("channelType", channelType);
+//            requestMap.put("channelType", channelType);
             if (!Check.isNull(signatures)) {
                 String[] signatureArray = signatures.split(",");
                 requestMap.put("signatureList", signatureArray);
@@ -159,7 +155,7 @@ public class KuaiShouVideoGetController {
                     requestMap.put("endDate", endDate);
                 }
                 requestMap.put("photoName", photoName);
-                requestMap.put("isKaiPing", isKaiPing);
+                requestMap.put("kaiPing", isKaiPing + "");
                 list = kuaiShouVideoGetService.getVideoList(requestMap);
             } else if ("cost".equals(orderBy)) {
                 if (!Check.isNull(startDate) && !Check.isNull(endDate)) {

+ 7 - 88
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/entity/vo/KuaiShouVideoGetVo.java

@@ -1,6 +1,7 @@
 package cn.com.ctop.kuaishou.modules.batch.entity.vo;
 
 import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
 import org.jeecgframework.poi.excel.annotation.Excel;
 
 import java.io.Serializable;
@@ -12,9 +13,11 @@ import java.math.BigDecimal;
  * @Date: 2019-07-25
  * @Version: V1.0
  */
-
+@Data
 public class KuaiShouVideoGetVo implements Serializable {
 
+    private static final long serialVersionUID = 4534710432490446944L;
+
     private BigDecimal charge;
     private String statDate;
 
@@ -46,91 +49,7 @@ public class KuaiShouVideoGetVo implements Serializable {
 
     private Integer materialType;
 
-
-    public BigDecimal getCharge() {
-        return charge;
-    }
-
-    public void setCharge(BigDecimal charge) {
-        this.charge = charge;
-    }
-
-    public String getStatDate() {
-        return statDate;
-    }
-
-    public void setStatDate(String statDate) {
-        this.statDate = statDate;
-    }
-
-    public String getPhotoId() {
-        return photoId;
-    }
-
-    public void setPhotoId(String photoId) {
-        this.photoId = photoId;
-    }
-
-    public String getUrl() {
-        return url;
-    }
-
-    public void setUrl(String url) {
-        this.url = url;
-    }
-
-    public String getPhotoName() {
-        return photoName;
-    }
-
-    public void setPhotoName(String photoName) {
-        this.photoName = photoName;
-    }
-
-    public Integer getChannelType() {
-        return channelType;
-    }
-
-    public void setChannelType(Integer channelType) {
-        this.channelType = channelType;
-    }
-
-    public String getCoverUrl() {
-        return coverUrl;
-    }
-
-    public void setCoverUrl(String coverUrl) {
-        this.coverUrl = coverUrl;
-    }
-
-    public String getSignature() {
-        return signature;
-    }
-
-    public void setSignature(String signature) {
-        this.signature = signature;
-    }
-
-    public Integer getMaterialType() {
-        return materialType;
-    }
-
-    public void setMaterialType(Integer materialType) {
-        this.materialType = materialType;
-    }
-
-    @Override
-    public String toString() {
-        return "KuaiShouVideoGetVo{" +
-                "charge=" + charge +
-                ", statDate='" + statDate + '\'' +
-                ", photoId='" + photoId + '\'' +
-                ", url='" + url + '\'' +
-                ", photoName='" + photoName + '\'' +
-                ", channelType=" + channelType +
-                ", coverUrl='" + coverUrl + '\'' +
-                ", signature='" + signature + '\'' +
-                ", materialType=" + materialType +
-                '}';
-    }
+    private Integer width;
+    private Integer height;
+    private Integer isKaiPing;
 }

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/KuaiShouVideoGetMapper.java

@@ -56,7 +56,7 @@ public interface KuaiShouVideoGetMapper extends BaseMapper<KuaiShouVideoGet> {
 
     List<String> queryPhotoIdsByProjectAndMd5(@Param("projectId") Long projectId, @Param("signature") String signature, @Param("accountId") JSONArray accountId);
 
-    JSONObject getVideoByPhotoIdAndAccountId(@Param("accountId") Long accountId, @Param("photoId") Long photoId);
+    JSONObject getVideoByPhotoIdAndAccountId(@Param("accountId") Long accountId, @Param("photoId") String photoId);
 
     List<JSONObject> getVideoListByDate(@Param("startDate") Date startDate,@Param("endDate") Date endDate);
 

+ 0 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouReportDailyMaterialMapper.xml

@@ -380,7 +380,6 @@
         ON t1.signature = t2.signature
         WHERE
         t1.account_id = #{accountId}
-        AND t1.channel_type = #{channelType}
         AND t2.material_type = #{materialType}
         AND t2.status = 0
         <if test="startDate != null and startDate != '' ">

+ 4 - 6
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouVideoGetMapper.xml

@@ -40,8 +40,7 @@
     </insert>
 
 
-    <select id="getVideoList" parameterType="java.util.Map"
-            resultType="cn.com.ctop.kuaishou.modules.batch.entity.vo.KuaiShouVideoGetVo">
+    <select id="getVideoList" resultType="cn.com.ctop.kuaishou.modules.batch.entity.vo.KuaiShouVideoGetVo">
         select
         stat_date as 'statDate',
         photo_id as 'photoId',
@@ -55,14 +54,13 @@
         is_kai_ping as 'isKaiPing'
         from ctop_kuaishou_video_get
         where account_id = #{accountId}
-        and channel_type = #{channelType}
         and material_type = #{materialType}
         and status = 0
         <if test="photoName != null and photoName != '' ">
             and photo_name like CONCAT('%',#{photoName},'%')
         </if>
-        <if test="isKaiPing != null and isKaiPing != '' ">
-            and is_kai_ping = #{isKaiPing}
+        <if test="kaiPing != null ">
+            and is_kai_ping = #{kaiPing}
         </if>
         <if test="startDate != null and startDate != '' ">
             and stat_date &gt;= #{startDate}
@@ -78,7 +76,7 @@
             </foreach>
         </if>
         group by signature
-        order by stat_date desc
+        order by photo_name, height
     </select>
 
 

+ 2 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/IKuaiShouVideoGetService.java

@@ -35,7 +35,7 @@ public interface IKuaiShouVideoGetService extends IService<KuaiShouVideoGet> {
 
     List<KuaiShouVideoGet> selectPhotoIdsByAccountId(Long accountId);
 
-    KuaiShouVideoGet getVideoByPhotoId(Long photo_id);
+    KuaiShouVideoGet getVideoByPhotoId(String photo_id);
 
     void etlVideoBaseInfoByStaDate(String statDate);
 
@@ -61,7 +61,7 @@ public interface IKuaiShouVideoGetService extends IService<KuaiShouVideoGet> {
 
     List<String> queryPhotoIdsByProjectAndMd5(Long projectId, String signature, JSONArray accountId);
 
-    JSONObject getVideoByPhotoIdAndAccountId(Long accountId, Long photoId);
+    JSONObject getVideoByPhotoIdAndAccountId(Long accountId, String photoId);
 
     List<JSONObject> getVideoListByDate(Date startDate, Date endDate);
 

+ 4 - 3
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaiShouVideoGetServiceImpl.java

@@ -41,6 +41,7 @@ public class KuaiShouVideoGetServiceImpl extends ServiceImpl<KuaiShouVideoGetMap
     private String downloadUrl;
     @Autowired
     private IKuaiShouVideoLastTimeService lastTimeService;
+
     @Override
     public void replaceBatch(List<KuaiShouVideoGet> videoGets) {
         videoGetMapper.replaceBatch(videoGets);
@@ -181,7 +182,7 @@ public class KuaiShouVideoGetServiceImpl extends ServiceImpl<KuaiShouVideoGetMap
     }
 
     @Override
-    public KuaiShouVideoGet getVideoByPhotoId(Long photoId) {
+    public KuaiShouVideoGet getVideoByPhotoId(String photoId) {
         QueryWrapper<KuaiShouVideoGet> queryWrapper = new QueryWrapper<>();
         queryWrapper.eq("photo_id", photoId);
         queryWrapper.last("limit 1");
@@ -346,7 +347,7 @@ public class KuaiShouVideoGetServiceImpl extends ServiceImpl<KuaiShouVideoGetMap
     }
 
     @Override
-    public JSONObject getVideoByPhotoIdAndAccountId(Long accountId, Long photoId) {
+    public JSONObject getVideoByPhotoIdAndAccountId(Long accountId, String photoId) {
         return videoGetMapper.getVideoByPhotoIdAndAccountId(accountId, photoId);
     }
 
@@ -361,7 +362,7 @@ public class KuaiShouVideoGetServiceImpl extends ServiceImpl<KuaiShouVideoGetMap
     }
 
     @Override
-    public List<KuaiShouVideoGet> getVideoListByPhotoIds(JSONArray photoIds,Long accountId) {
+    public List<KuaiShouVideoGet> getVideoListByPhotoIds(JSONArray photoIds, Long accountId) {
         return videoGetMapper.getVideoListByPhotoIds(photoIds, accountId);
     }
 }

+ 14 - 5
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouBatchCampaignPreviewServiceImpl.java

@@ -498,7 +498,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
                 JSONArray photoArr = material.getJSONArray("photoArr");
 
                 campaignPreview.setId(null);
-                campaignPreview.setCampaignName(getName(campaignPreview.getCampaignNameFormat(), getRandomFromArr(targetIds), groupPreview.getSceneId(), appId, groupPreview.getUnitType(), i, getRandomFromArr(photoArr), creativePreview.getCreativeCategory()));
+                campaignPreview.setCampaignName(getName(campaignPreview.getCampaignNameFormat(), targetIds.getLong(new Random().nextInt(targetIds.size())), groupPreview.getSceneId(), appId, groupPreview.getUnitType(), i, getRandomFromArr(photoArr), creativePreview.getCreativeCategory()));
                 campaignPreviewMapper.insert(campaignPreview);
 
                 if (matchingMethod == 2) {
@@ -779,9 +779,18 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
         }
     }
 
-    private static Long getRandomFromArr(JSONArray list) {
+    private static String getRandomFromArr(JSONArray list) {
         int i = new Random().nextInt(list.size());
-        return list.getLong(i);
+        JSONObject photo = list.getJSONObject(i);
+        String photoId = photo.getString("photoId");
+        if (!Check.isNull(photoId)) {
+            return photoId;
+        }
+        JSONArray splashPhotoIds = photo.getJSONArray("splashPhotoIds");
+        if (!Check.isNull(splashPhotoIds)) {
+            return splashPhotoIds.getString(0);
+        }
+        return null;
     }
 
     /**
@@ -818,7 +827,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
      * @return
      */
     private String getName(String content, Long templateId, String sceneId, Integer appId, Integer unitType
-            , Integer number, Long photoId, Integer creativeCategory) {
+            , Integer number, String photoId, Integer creativeCategory) {
         String reg = "\\{\\{(.+?)\\}\\}";
         List<String> params = getParams(reg, content);
         if (Check.isNull(params)) {
@@ -869,7 +878,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
                 }
             } else if ("序号".equals(regName)) {
                 data.put(regName, number + "");
-            } else if ("素材命名".equals(photoId)) {
+            } else if ("素材命名".equals(regName)) {
                 KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(photoId);
                 if (!Check.isNull(video)) {
                     data.put(regName, video.getPhotoName());

+ 21 - 31
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouBatchCreativePreviewServiceImpl.java

@@ -442,7 +442,7 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
             createJson.put("creative_name", creativePreview.getCreativeName()); // 创意名称
             if (!Check.isNull(creativePreview.getPhotoId())) {
                 createJson.put("photo_id", creativePreview.getPhotoId());  // 视频ID
-                KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(Long.valueOf(creativePreview.getPhotoId()));
+                KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(creativePreview.getPhotoId());
                 if (Check.isNull(video)) {
                     log.info("账户:{},photoId:{} 没有查询到视频,素材类型指定为竖版视频", oauthToken.getAccountId(), creativePreview.getPhotoId());
                     createJson.put("creative_material_type", 1);  // 素材类型
@@ -524,7 +524,7 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
     /**
      * 根据预览数据创建广告创意(批量)
      */
-    private void createMoreCreative(CtopOauthToken oauthToken, List<KuaishouBatchCreativePreview> creativePreviewList, Long campaignId, Long unitId) throws Exception {
+    private void createMoreCreative(CtopOauthToken oauthToken, List<KuaishouBatchCreativePreview> creativePreviewList, Long unitId, Long campaignId) throws Exception {
         KuaishouBatchCreativePreview updateStatus = new KuaishouBatchCreativePreview();
         updateStatus.setCampaignId(campaignId);
         updateStatus.setUnitId(unitId);
@@ -553,40 +553,29 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
             List<JSONObject> creatives = new ArrayList<>();
             for (KuaishouBatchCreativePreview preview : creativePreviewList) {
                 JSONObject creative = new JSONObject();
-                creative.put("creative_name", creativePreview.getCreativeName()); // 创意名称
-                if (!Check.isNull(creativePreview.getPhotoId())) {
-                    creative.put("photo_id", creativePreview.getPhotoId());  // 视频ID
-                    KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(Long.valueOf(creativePreview.getPhotoId()));
-                    if (Check.isNull(video)) {
-                        log.info("账户:{},photoId:{} 没有查询到视频,素材类型指定为竖版视频", oauthToken.getAccountId(), creativePreview.getPhotoId());
-                        creative.put("creative_material_type", 1);  // 素材类型
-                    } else {
-                        if (0 == video.getIsKaiPing()) {
-                            creative.put("creative_material_type", 11);// 11-开屏视频
-                            creative.put("splash_photo_ids", JSONObject.parseArray(creativePreview.getSplashPhotoIds()));  // 安卓下载中间页ID
-                        } else {
-                            creative.put("creative_material_type", video.getMaterialType());//1:竖版视频 2:横版视频
-                        }
-                    }
+                creative.put("creative_name", preview.getCreativeName()); // 创意名称
+                if (!Check.isNull(preview.getSplashPhotoIds())) {
+                    creative.put("creative_material_type", 11);// 11-开屏视频
+                    creative.put("splash_photo_ids", JSONObject.parseArray(preview.getSplashPhotoIds()));  // 安卓下载中间页ID
                 }
-                if (!Check.isNull(creativePreview.getImageTokens())) {
-                    creative.put("image_tokens", Arrays.asList(creativePreview.getImageTokens()));
-                    creative.put("creative_material_type", creativePreview.getMaterialType());
+                if (!Check.isNull(preview.getImageTokens())) {
+                    creative.put("image_tokens", Arrays.asList(preview.getImageTokens()));
+                    creative.put("creative_material_type", preview.getMaterialType());
                 }
-                if (!Check.isNull(creativePreview.getActionBarText())) {
-                    creative.put("action_bar_text", creativePreview.getActionBarText());  // 行动号召按钮文案
+                if (!Check.isNull(preview.getActionBarText())) {
+                    creative.put("action_bar_text", preview.getActionBarText());  // 行动号召按钮文案
                 }
-                if (!Check.isNull(creativePreview.getDescription())) {
-                    creative.put("description", creativePreview.getDescription());  // 广告语
+                if (!Check.isNull(preview.getDescription())) {
+                    creative.put("description", preview.getDescription());  // 广告语
                 }
-                if (!Check.isNull(creativePreview.getStickerTitle())) {
-                    creative.put("sticker_title", creativePreview.getStickerTitle());  // 封面广告语标题
+                if (!Check.isNull(preview.getStickerTitle())) {
+                    creative.put("sticker_title", preview.getStickerTitle());  // 封面广告语标题
                 }
-                if (!Check.isNull(creativePreview.getOverlayType())) {
-                    creative.put("overlay_type", creativePreview.getOverlayType());  // 贴纸样式类型
+                if (!Check.isNull(preview.getOverlayType())) {
+                    creative.put("overlay_type", preview.getOverlayType());  // 贴纸样式类型
                 }
-                if (!Check.isNull(creativePreview.getSiteId())) {
-                    creative.put("site_id", creativePreview.getSiteId());  // 安卓下载中间页ID
+                if (!Check.isNull(preview.getSiteId())) {
+                    creative.put("site_id", preview.getSiteId());  // 安卓下载中间页ID
                 }
                 creatives.add(creative);
             }
@@ -612,6 +601,7 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
             updateStatus.setId(preview.getId());
             creativePreviewMapper.updateById(updateStatus);
         }
+
     }
 
     /**
@@ -647,7 +637,7 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
                     JSONObject photo = new JSONObject();
                     photo.put("photo_id", photoId);//视频 ID
                     photo.put("cover_image_token", null);//封面图片 token,通过上传图片接口获得,不传值则直接使用视频的首帧作为封面图片
-                    KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(Long.valueOf(photoId));
+                    KuaiShouVideoGet video = videoGetService.getVideoByPhotoId(photoId);
                     if (Check.isNull(video)) {
                         log.info("账户:{},photoId:{} 没有查询到视频,素材类型指定为竖版视频", oauthToken.getAccountId(), photoId);
                         photo.put("creative_material_type", 1);

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/dimension/entity/KuaiShouDimensionCreative.java

@@ -67,7 +67,7 @@ public class KuaiShouDimensionCreative {
      */
     @Excel(name = "视频id", width = 15)
     @ApiModelProperty(value = "视频id")
-    private Long photoId;
+    private String photoId;
     /**
      * 素材类型
      */

+ 2 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/dimension/service/impl/KuaiShouDimensionCreativeServiceImpl.java

@@ -82,7 +82,7 @@ public class KuaiShouDimensionCreativeServiceImpl extends ServiceImpl<KuaiShouDi
                         creativeJson.put("description", description.trim());
                         String name = creative.getCreativeName();
                         creativeJson.put("creative_name", name);
-                        Long photoId = creative.getPhotoId();
+                        String photoId = creative.getPhotoId();
                         if (!Check.isNull(photoId)) {
                             creativeJson.put("photo_id", photoId);
                         }
@@ -161,7 +161,7 @@ public class KuaiShouDimensionCreativeServiceImpl extends ServiceImpl<KuaiShouDi
                 creativeJson.put("description", description.trim());
                 String name = creative.getCreativeName();
                 creativeJson.put("creative_name", name);
-                Long photoId = creative.getPhotoId();
+                String photoId = creative.getPhotoId();
                 if (!Check.isNull(photoId)) {
                     creativeJson.put("photo_id", photoId);
                 }

+ 21 - 4
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/dimension/service/impl/KuaiShouDimensionStrategyServiceImpl.java

@@ -9,9 +9,20 @@ import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouVideoGet;
 import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouAppListService;
 import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouVideoGetService;
 import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouInterfaceService;
-import cn.com.ctop.kuaishou.modules.dimension.entity.*;
+import cn.com.ctop.kuaishou.modules.dimension.entity.KuaiShouDimensionAccount;
+import cn.com.ctop.kuaishou.modules.dimension.entity.KuaiShouDimensionCampaign;
+import cn.com.ctop.kuaishou.modules.dimension.entity.KuaiShouDimensionCreative;
+import cn.com.ctop.kuaishou.modules.dimension.entity.KuaiShouDimensionStrategy;
+import cn.com.ctop.kuaishou.modules.dimension.entity.KuaiShouDimensionUnit;
 import cn.com.ctop.kuaishou.modules.dimension.mapper.KuaiShouDimensionStrategyMapper;
-import cn.com.ctop.kuaishou.modules.dimension.service.*;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionAccountService;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionAgeConfigService;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionCampaignService;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionCreativeService;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionRegionDetailService;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionStrategyService;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionUnitService;
+import cn.com.ctop.kuaishou.modules.dimension.service.IKuaiShouDimensionVariableService;
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
@@ -24,7 +35,13 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Random;
+import java.util.UUID;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 
@@ -543,7 +560,7 @@ public class KuaiShouDimensionStrategyServiceImpl extends ServiceImpl<KuaiShouDi
             public void run() {
                 List<KuaiShouDimensionCreative> addList = new ArrayList<>();
                 for (int i = 0; i < videoArray.size(); i++) {
-                    Long photoId = videoArray.getLong(i);
+                    String photoId = videoArray.getString(i);
                     if (Check.isNull(photoId)) {
                         continue;
                     }

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/MaterialCutFrameController.java

@@ -69,7 +69,7 @@ public class MaterialCutFrameController {
 
     @ApiOperation(value = "截屏-查询", notes = "截屏-查询")
     @GetMapping(value = "/queryByPhotoId")
-    public Result<Object> queryByPhotoId(Long photoId) {
+    public Result<Object> queryByPhotoId(String photoId) {
         try {
             KuaiShouVideoGet videoGet = videoGetService.getVideoByPhotoId(photoId);
             List<MaterialCutFrame> list = materialCutFrameService.getListByVideoSignature(videoGet.getSignature());