Browse Source

批量创建--安卓下载中间页更改字符格式

zhaoxian 4 years ago
parent
commit
87e44d0327

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/entity/KuaishouBatchCreativePreview.java

@@ -116,7 +116,7 @@ public class KuaishouBatchCreativePreview {
      */
     @Excel(name = "安卓下载中间页", width = 15)
     @ApiModelProperty(value = "安卓下载中间页")
-    private Integer siteId;
+    private Long siteId;
     /**
      * 便利贴创意短广告语
      */

+ 6 - 6
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouBatchCampaignPreviewServiceImpl.java

@@ -136,7 +136,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
         //应用分配方式 1 按账户,2按广告计划,3按广告组
         Integer appAllocation = appList.getInteger("appAllocation");
         Integer appId = null;
-        Integer siteId = null;
+        Long siteId = null;
         String url = null;
         JSONArray appArr = appList.getJSONArray("appArr");
         JSONArray urlArr = appList.getJSONArray("urlArr");
@@ -155,7 +155,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
         if (appAllocation == 1) {
             if (appNoNull) {
                 appId = appArr.getJSONObject(0).getInteger("appId");
-                siteId = appArr.getJSONObject(0).getInteger("siteId");
+                siteId = appArr.getJSONObject(0).getLong("siteId");
             }
             if (urlNoNull) {
                 url = urlArr.getString(0);
@@ -197,7 +197,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
                 if (appAllocation == 2) {
                     if (appNoNull) {
                         appId = appArr.getJSONObject(i).getInteger("appId");
-                        siteId = appArr.getJSONObject(i).getInteger("siteId");
+                        siteId = appArr.getJSONObject(i).getLong("siteId");
                     }
                     if (urlNoNull) {
                         url = urlArr.getString(i);
@@ -219,7 +219,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
                         appCount--;
                         if (appNoNull) {
                             appId = appArr.getJSONObject(appCount).getInteger("appId");
-                            siteId = appArr.getJSONObject(appCount).getInteger("siteId");
+                            siteId = appArr.getJSONObject(appCount).getLong("siteId");
                         }
                         if (urlNoNull) {
                             url = urlArr.getString(appCount);
@@ -281,7 +281,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
                 if (appAllocation == 2) {
                     if (appNoNull) {
                         appId = appArr.getJSONObject(i).getInteger("appId");
-                        siteId = appArr.getJSONObject(i).getInteger("siteId");
+                        siteId = appArr.getJSONObject(i).getLong("siteId");
                     }
                     if (urlNoNull) {
                         url = urlArr.getString(i);
@@ -309,7 +309,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
                         appCount--;
                         if (appNoNull) {
                             appId = appArr.getJSONObject(appCount).getInteger("appId");
-                            siteId = appArr.getJSONObject(appCount).getInteger("siteId");
+                            siteId = appArr.getJSONObject(appCount).getLong("siteId");
                         }
                         if (urlNoNull) {
                             url = urlArr.getString(appCount);