Sfoglia il codice sorgente

修改数据非空校验

syh 5 anni fa
parent
commit
fb3f3fb1ee

+ 99 - 99
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/entity/BytedanceCreativeDailyReport.java

@@ -410,45 +410,45 @@ public class BytedanceCreativeDailyReport {
         if (null != playFeedBreak75) {
             this.play75FeedBreak = playFeedBreak75;
         }
-        Long next_day_open = data.getLong("next_day_open");
-        if (null != next_day_open) {
-            this.nextDayOpen = next_day_open;
+        Long nextDayOpen = data.getLong("next_day_open");
+        if (null != nextDayOpen) {
+            this.nextDayOpen = nextDayOpen;
         }
         Long convert = data.getLong("convert");
         if (null != convert) {
             this.convertNum = convert;
         }
-        Long in_app_cart = data.getLong("in_app_cart");
-        if (null != in_app_cart) {
-            this.inAppCart = in_app_cart;
+        Long inAppCart = data.getLong("in_app_cart");
+        if (null != inAppCart) {
+            this.inAppCart = inAppCart;
         }
-        Long play_25_feed_break = data.getLong("play_25_feed_break");
-        if (null != play_25_feed_break) {
-            this.play25FeedBreak = play_25_feed_break;
+        Long play25FeedBreak = data.getLong("play_25_feed_break");
+        if (null != play25FeedBreak) {
+            this.play25FeedBreak = play25FeedBreak;
         }
-        Long consult_effective = data.getLong("consult_effective");
-        if (null != consult_effective) {
-            this.consultEffective = consult_effective;
+        Long consultEffective = data.getLong("consult_effective");
+        if (null != consultEffective) {
+            this.consultEffective = consultEffective;
         }
         Long view = data.getLong("view");
         if (null != view) {
             this.view = view;
         }
-        Long phone_confirm = data.getLong("phone_confirm");
-        if (null != phone_confirm) {
-            this.phoneConfirm = phone_confirm;
+        Long phoneConfirm = data.getLong("phone_confirm");
+        if (null != phoneConfirm) {
+            this.phoneConfirm = phoneConfirm;
         }
-        Long ies_music_click = data.getLong("ies_music_click");
-        if (null != ies_music_click) {
-            this.iesMusicClick = ies_music_click;
+        Long iesMusicClick = data.getLong("ies_music_click");
+        if (null != iesMusicClick) {
+            this.iesMusicClick = iesMusicClick;
         }
-        Long wifi_play = data.getLong("wifi_play");
-        if (null != wifi_play) {
-            this.wifiPlay = wifi_play;
+        Long wifiPlay = data.getLong("wifi_play");
+        if (null != wifiPlay) {
+            this.wifiPlay = wifiPlay;
         }
-        String stat_datetime = data.getString("stat_datetime");
-        if (null != stat_datetime && !"".equals(stat_datetime.trim())) {
-            this.statDatetime = stat_datetime;
+        String statDatetime = data.getString("stat_datetime");
+        if (null != statDatetime && !"".equals(statDatetime.trim())) {
+            this.statDatetime = statDatetime;
         }
         Long shopping = data.getLong("shopping");
         if (null != shopping) {
@@ -462,9 +462,9 @@ public class BytedanceCreativeDailyReport {
         if (null != like) {
             this.likeNum = like;
         }
-        Long play_50_feed_break = data.getLong("play_50_feed_break");
-        if (null != play_50_feed_break) {
-            this.play50FeedBreak = play_50_feed_break;
+        Long play50FeedBreak = data.getLong("play_50_feed_break");
+        if (null != play50FeedBreak) {
+            this.play50FeedBreak = play50FeedBreak;
         }
         Long active = data.getLong("active");
         if (null != active) {
@@ -474,77 +474,77 @@ public class BytedanceCreativeDailyReport {
         if (null != click) {
             this.click = click;
         }
-        Long advanced_creative_phone_click = data.getLong("advanced_creative_phone_click");
-        if (null != advanced_creative_phone_click) {
-            this.advancedCreativePhoneClick = advanced_creative_phone_click;
+        Long advancedCreativePhoneClick = data.getLong("advanced_creative_phone_click");
+        if (null != advancedCreativePhoneClick) {
+            this.advancedCreativePhoneClick = advancedCreativePhoneClick;
         }
-        Long download_start = data.getLong("download_start");
-        if (null != download_start) {
-            this.downloadStart = download_start;
+        Long downloadStart = data.getLong("download_start");
+        if (null != downloadStart) {
+            this.downloadStart = downloadStart;
         }
-        Long home_visited = data.getLong("home_visited");
-        if (null != home_visited) {
-            this.homeVisited = home_visited;
+        Long homeVisited = data.getLong("home_visited");
+        if (null != homeVisited) {
+            this.homeVisited = homeVisited;
         }
         Long phone = data.getLong("phone");
         if (null != phone) {
             this.phone = phone;
         }
-        Long in_app_pay = data.getLong("in_app_pay");
-        if (null != in_app_pay) {
-            this.inAppPay = in_app_pay;
+        Long inAppPay = data.getLong("in_app_pay");
+        if (null != inAppPay) {
+            this.inAppPay = inAppPay;
         }
-        BigDecimal next_day_open_cost = data.getBigDecimal("next_day_open_cost");
-        if (null != next_day_open_cost) {
-            this.nextDayOpenCost = next_day_open_cost;
+        BigDecimal nextDayOpenCost = data.getBigDecimal("next_day_open_cost");
+        if (null != nextDayOpenCost) {
+            this.nextDayOpenCost = nextDayOpenCost;
         }
-        Long ies_challenge_click = data.getLong("ies_challenge_click");
-        if (null != ies_challenge_click) {
-            this.iesChallengeClick = ies_challenge_click;
+        Long iesChallengeClick = data.getLong("ies_challenge_click");
+        if (null != iesChallengeClick) {
+            this.iesChallengeClick = iesChallengeClick;
         }
-        Long total_play = data.getLong("total_play");
-        if (null != total_play) {
-            this.totalPlay = total_play;
+        Long totalPlay = data.getLong("total_play");
+        if (null != totalPlay) {
+            this.totalPlay = totalPlay;
         }
         Long show = data.getLong("show");
         if (null != show) {
             this.showNum = show;
         }
-        BigDecimal next_day_open_rate = data.getBigDecimal("next_day_open_rate");
-        if (null != next_day_open_rate) {
-            this.nextDayOpenRate = next_day_open_rate;
+        BigDecimal nextDayOpenRate = data.getBigDecimal("next_day_open_rate");
+        if (null != nextDayOpenRate) {
+            this.nextDayOpenRate = nextDayOpenRate;
         }
-        Long map_search = data.getLong("map_search");
-        if (null != map_search) {
-            this.mapSearch = map_search;
+        Long mapSearch = data.getLong("map_search");
+        if (null != mapSearch) {
+            this.mapSearch = mapSearch;
         }
-        Long click_install = data.getLong("click_install");
-        if (null != click_install) {
-            this.clickInstall = click_install;
+        Long clickInstall = data.getLong("click_install");
+        if (null != clickInstall) {
+            this.clickInstall = clickInstall;
         }
-        BigDecimal interact_per_cost = data.getBigDecimal("interact_per_cost");
-        if (null != interact_per_cost) {
-            this.interactPerCost = interact_per_cost;
+        BigDecimal interactPerCost = data.getBigDecimal("interact_per_cost");
+        if (null != interactPerCost) {
+            this.interactPerCost = interactPerCost;
         }
-        Long advertiser_id = data.getLong("advertiser_id");
-        if (null != advertiser_id) {
-            this.advertiserId = advertiser_id;
+        Long advertiserId = data.getLong("advertiser_id");
+        if (null != advertiserId) {
+            this.advertiserId = advertiserId;
         }
         Long button = data.getLong("button");
         if (null != button) {
             this.button = button;
         }
-        Long play_duration_sum = data.getLong("play_duration_sum");
-        if (null != play_duration_sum) {
-            this.playDurationSum = play_duration_sum;
+        Long playDurationSum = data.getLong("play_duration_sum");
+        if (null != playDurationSum) {
+            this.playDurationSum = playDurationSum;
         }
-        Long play_100_feed_break = data.getLong("play_100_feed_break");
-        if (null != play_100_feed_break) {
-            this.play100FeedBreak = play_100_feed_break;
+        Long play100FeedBreak = data.getLong("play_100_feed_break");
+        if (null != play100FeedBreak) {
+            this.play100FeedBreak = play100FeedBreak;
         }
-        Long advanced_creative_counsel_click = data.getLong("advanced_creative_counsel_click");
-        if (null != advanced_creative_counsel_click) {
-            this.advancedCreativeCounselClick = advanced_creative_counsel_click;
+        Long advancedCreativeCounselClick = data.getLong("advanced_creative_counsel_click");
+        if (null != advancedCreativeCounselClick) {
+            this.advancedCreativeCounselClick = advancedCreativeCounselClick;
         }
         Long share = data.getLong("share");
         if (null != share) {
@@ -558,29 +558,29 @@ public class BytedanceCreativeDailyReport {
         if (null != vote) {
             this.vote = vote;
         }
-        Long valid_play = data.getLong("valid_play");
-        if (null != valid_play) {
-            this.validPlay = valid_play;
+        Long validPlay = data.getLong("valid_play");
+        if (null != validPlay) {
+            this.validPlay = validPlay;
         }
         Long redirect = data.getLong("redirect");
         if (null != redirect) {
             this.redirect = redirect;
         }
-        Long pay_count = data.getLong("pay_count");
-        if (null != pay_count) {
-            this.payCount = pay_count;
+        Long payCount = data.getLong("pay_count");
+        if (null != payCount) {
+            this.payCount = payCount;
         }
-        Long advanced_creative_form_click = data.getLong("advanced_creative_form_click");
-        if (null != advanced_creative_form_click) {
-            this.advancedCreativeFormClick = advanced_creative_form_click;
+        Long advancedCreativeFormClick = data.getLong("advanced_creative_form_click");
+        if (null != advancedCreativeFormClick) {
+            this.advancedCreativeFormClick = advancedCreativeFormClick;
         }
         BigDecimal cost = data.getBigDecimal("cost");
         if (null != cost) {
             this.cost = cost;
         }
-        Long download_finish = data.getLong("download_finish");
-        if (null != download_finish) {
-            this.downloadFinish = download_finish;
+        Long downloadFinish = data.getLong("download_finish");
+        if (null != downloadFinish) {
+            this.downloadFinish = downloadFinish;
         }
         Long wechat = data.getLong("wechat");
         if (null != wechat) {
@@ -590,13 +590,13 @@ public class BytedanceCreativeDailyReport {
         if (null != lottery) {
             this.lottery = lottery;
         }
-        Long in_app_order = data.getLong("in_app_order");
-        if (null != in_app_order) {
-            this.inAppOrder = in_app_order;
+        Long inAppOrder = data.getLong("in_app_order");
+        if (null != inAppOrder) {
+            this.inAppOrder = inAppOrder;
         }
-        Long install_finish = data.getLong("install_finish");
-        if (null != install_finish) {
-            this.installFinish = install_finish;
+        Long installFinish = data.getLong("install_finish");
+        if (null != installFinish) {
+            this.installFinish = installFinish;
         }
         Long follow = data.getLong("follow");
         if (null != follow) {
@@ -606,9 +606,9 @@ public class BytedanceCreativeDailyReport {
 //		if(null!=message){
 //			this.message = message;
 //		}
-        Long in_app_detail_uv = data.getLong("in_app_detail_uv");
-        if (null != in_app_detail_uv) {
-            this.inAppDetailUv = in_app_detail_uv;
+        Long inAppDetailUv = data.getLong("in_app_detail_uv");
+        if (null != inAppDetailUv) {
+            this.inAppDetailUv = inAppDetailUv;
         }
         Long form = data.getLong("form");
         if (null != form) {
@@ -622,9 +622,9 @@ public class BytedanceCreativeDailyReport {
         if (null != comment) {
             this.comment = comment;
         }
-        Long in_app_uv = data.getLong("in_app_uv");
-        if (null != in_app_uv) {
-            this.inAppUv = in_app_uv;
+        Long inAppUv = data.getLong("in_app_uv");
+        if (null != inAppUv) {
+            this.inAppUv = inAppUv;
         }
         Long register = data.getLong("register");
         if (null != register) {
@@ -646,9 +646,9 @@ public class BytedanceCreativeDailyReport {
         if (null != adId) {
             this.adId = adId;
         }
-        Long creative_id = data.getLong("creative_id");
-        if (null != creative_id) {
-            this.creativeId = creative_id;
+        Long creativeId = data.getLong("creative_id");
+        if (null != creativeId) {
+            this.creativeId = creativeId;
         }
     }
 

+ 21 - 21
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/entity/BytedancePlanDailyReport.java

@@ -401,41 +401,41 @@ public class BytedancePlanDailyReport {
         if (null != playFeedBreak75) {
             this.play75FeedBreak = playFeedBreak75;
         }
-        Long next_day_open = data.getLong("next_day_open");
-        if (null != next_day_open) {
-            this.nextDayOpen = next_day_open;
+        Long nextDayOpen = data.getLong("next_day_open");
+        if (null != nextDayOpen) {
+            this.nextDayOpen = nextDayOpen;
         }
         Long convert = data.getLong("convert");
         if (null != convert) {
             this.convertNum = convert;
         }
-        Long in_app_cart = data.getLong("in_app_cart");
-        if (null != in_app_cart) {
-            this.inAppCart = in_app_cart;
+        Long inAppCart = data.getLong("in_app_cart");
+        if (null != inAppCart) {
+            this.inAppCart = inAppCart;
         }
-        Long play_25_feed_break = data.getLong("play_25_feed_break");
-        if (null != play_25_feed_break) {
-            this.play25FeedBreak = play_25_feed_break;
+        Long play25FeedBreak = data.getLong("play_25_feed_break");
+        if (null != play25FeedBreak) {
+            this.play25FeedBreak = play25FeedBreak;
         }
-        Long consult_effective = data.getLong("consult_effective");
-        if (null != consult_effective) {
-            this.consultEffective = consult_effective;
+        Long consultEffective = data.getLong("consult_effective");
+        if (null != consultEffective) {
+            this.consultEffective = consultEffective;
         }
         Long view = data.getLong("view");
         if (null != view) {
             this.view = view;
         }
-        Long phone_confirm = data.getLong("phone_confirm");
-        if (null != phone_confirm) {
-            this.phoneConfirm = phone_confirm;
+        Long phoneConfirm = data.getLong("phone_confirm");
+        if (null != phoneConfirm) {
+            this.phoneConfirm = phoneConfirm;
         }
-        Long ies_music_click = data.getLong("ies_music_click");
-        if (null != ies_music_click) {
-            this.iesMusicClick = ies_music_click;
+        Long iesMusicClick = data.getLong("ies_music_click");
+        if (null != iesMusicClick) {
+            this.iesMusicClick = iesMusicClick;
         }
-        Long wifi_play = data.getLong("wifi_play");
-        if (null != wifi_play) {
-            this.wifiPlay = wifi_play;
+        Long wifiPlay = data.getLong("wifi_play");
+        if (null != wifiPlay) {
+            this.wifiPlay = wifiPlay;
         }
         String stat_datetime = data.getString("stat_datetime");
         if (null != stat_datetime && !"".equals(stat_datetime.trim())) {

+ 55 - 18
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/entity/PlatformCampaignStatisticInfo.java

@@ -204,25 +204,62 @@ public class PlatformCampaignStatisticInfo {
             } else {
                 this.campaignCode = "";
             }
+            if (null != record[3] && !"".equals(record[3])) {
+                this.cost = new BigDecimal(record[3]);
+            }
+            if (null != record[4] && !"".equals(record[4])) {
+                this.coverExposure = Integer.parseInt(record[4]);
+            }
+            if (null != record[5] && !"".equals(record[5])) {
+                this.coverClick = Integer.parseInt(record[5]);
+            }
+            if (null != record[6] && !"".equals(record[6])) {
+                this.metarialExposure = Integer.parseInt(record[6]);
+            }
+            if (null != record[7] && !"".equals(record[7])) {
+                this.action = Integer.parseInt(record[7]);
+            }
+            if (null != record[8] && !"".equals(record[8])) {
+                this.coverClickRate = record[8];
+            }
+            if (null != record[9] && !"".equals(record[9])) {
+                this.actionRate = record[9];
+            }
+            if (null != record[10] && !"".equals(record[10])) {
+                this.thousandsCoverExposureCost = new BigDecimal(record[10]);
+            }
+            if (null != record[11] && !"".equals(record[11])) {
+                this.averageCoverClickCost = new BigDecimal(record[11]);
+            }
+            if (null != record[12] && !"".equals(record[12])) {
+                this.averageActionCost = new BigDecimal(record[12]);
+            }
+            if (null != record[13] && !"".equals(record[13])) {
+                this.submitButtonClick = Integer.parseInt(record[13]);
+            }
+            if (null != record[14] && !"".equals(record[14])) {
+                this.formSubmissionRate = record[14];
+            }
+
+            if (null != record[15] && !"".equals(record[15])) {
+                this.formSubmissionPrice = new BigDecimal(record[15]);
+            }
+            if (null != record[16] && !"".equals(record[16])) {
+                this.pageCompleteNum = Integer.parseInt(record[16]);
+            }
+            if (null != record[17] && !"".equals(record[17])) {
+                this.pageCompleteCost = new BigDecimal(record[17]);
+            }
+            if (null != record[18] && !"".equals(record[18])) {
+                this.pageCreditNum = Integer.parseInt(record[18]);
+            }
+            if (null != record[19] && !"".equals(record[19])) {
+                this.pageCreditCost = new BigDecimal(record[19]);
+            }
+            if (null != record[20] && !"".equals(record[20])) {
+                this.pageCreditRate = record[20];
+            }
 
-            this.cost = new BigDecimal(record[3]);
-            this.coverExposure = Integer.parseInt(record[4]);
-            this.coverClick = Integer.parseInt(record[5]);
-            this.metarialExposure = Integer.parseInt(record[6]);
-            this.action = Integer.parseInt(record[7]);
-            this.coverClickRate = record[8];
-            this.actionRate = record[9];
-            this.thousandsCoverExposureCost = new BigDecimal(record[10]);
-            this.averageCoverClickCost = new BigDecimal(record[11]);
-            this.averageActionCost = new BigDecimal(record[12]);
-            this.submitButtonClick = Integer.parseInt(record[13]);
-            this.formSubmissionRate = record[14];
-            this.formSubmissionPrice = new BigDecimal(record[15]);
-            this.pageCompleteNum = Integer.parseInt(record[16]);
-            this.pageCompleteCost = new BigDecimal(record[17]);
-            this.pageCreditNum = Integer.parseInt(record[18]);
-            this.pageCreditCost = new BigDecimal(record[19]);
-            this.pageCreditRate = record[20];
             this.createTime = new Date();
             this.updateTime = new Date();
         }