yumeng 5 年之前
父節點
當前提交
7d257422ff

+ 6 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouCreativeMapper.xml

@@ -30,6 +30,9 @@
         description,
         action_bar_text,
         first_frame_type,
+        site_id,
+        programmed_creative_material,
+        photo_ids,
         creative_create_time,
         creative_update_time,
         create_time,
@@ -64,6 +67,9 @@
             #{creative.description},
             #{creative.actionBarText},
             #{creative.firstFrameType},
+            #{creative.siteId},
+            #{creative.programmedCreativeMaterial},
+            #{creative.photoIds},
             #{creative.creativeCreateTime},
             #{creative.creativeUpdateTime},
             #{creative.createTime},

+ 3 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -2015,6 +2015,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                     }
                     creative.setCreateTime(new Date());
                     creative.setUpdateTime(new Date());
+                    creative.setSiteId(detailJson.getLong("site_id"));
                     creative.setPhotoId(detailJson.getString("photo_id"));
                     if (detailJson.getLong("photo_id") == 0) {
                         JSONArray photoIds = new JSONArray();
@@ -2034,7 +2035,9 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                             }
                         }
                     }
+                    creatives.add(creative);
                 }
+
             }
             creativeService.replaceBatch(creatives);
             getCreativeListByPage(accessToken, advertiserId, startDate, endDate, page + 1);