yumeng 1 год назад
Родитель
Сommit
3ec123acef

+ 2 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/BytedanceAccountReportServiceImpl.java

@@ -243,6 +243,7 @@ public class BytedanceAccountReportServiceImpl implements IBytedanceAccountRepor
                     errorInfo.setEndDate(endDate);
                     errorInfo.setDataDimension("account");
                     errorInfo.setDataType("hour");
+                    errorInfo.setMsg(result.getString("message"));
                     accountReportMapper.replaceErrorInfo(errorInfo);
                 }
                 return;
@@ -333,6 +334,7 @@ public class BytedanceAccountReportServiceImpl implements IBytedanceAccountRepor
                     errorInfo.setEndDate(endDate);
                     errorInfo.setDataDimension("account");
                     errorInfo.setDataType("daily");
+                    errorInfo.setMsg(result.getString("message"));
                     accountReportMapper.replaceErrorInfo(errorInfo);
                 }
                 return;

+ 8 - 7
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/BytedancePromoterReportServiceImpl.java

@@ -93,8 +93,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                 promoterReportMapper.replacePromoterReportHour(hours);
                 try {
                     promoterReportMapper.replacePromoterReportHourSD(hours);
-                }catch (Exception e) {
-                    log.error("",e);
+                } catch (Exception e) {
+                    log.error("", e);
                 }
             }
             if (hours.size() >= 100) {
@@ -177,8 +177,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                 promoterReportMapper.replacePromoterReportDailies(promoterReportDailies);
                 try {
                     promoterReportMapper.replacePromoterReportDailiesSD(promoterReportDailies);
-                }catch (Exception e) {
-                    log.error("",e);
+                } catch (Exception e) {
+                    log.error("", e);
                 }
                 log.info("账户ID:{},广告日报(最细粒度)数据请求成功", advertiserId);
             }
@@ -283,7 +283,7 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                 promoterReportMapper.replacePromoterReportHour(hours);
                 try {
                     promoterReportMapper.replacePromoterReportHourSD(hours);
-                }catch (Exception e) {
+                } catch (Exception e) {
                     e.printStackTrace();
                 }
             }
@@ -371,6 +371,7 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                     errorInfo.setEndDate(endDate);
                     errorInfo.setDataDimension("promoter");
                     errorInfo.setDataType("daily");
+                    errorInfo.setMsg(result.getString("message"));
                     promoterReportMapper.replaceErrorInfo(errorInfo);
                 }
                 return;
@@ -379,8 +380,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                 promoterReportMapper.replacePromoterReportDailies(promoterReportDailies);
                 try {
                     promoterReportMapper.replacePromoterReportDailiesSD(promoterReportDailies);
-                }catch (Exception e) {
-                    log.error("",e);
+                } catch (Exception e) {
+                    log.error("", e);
                 }
                 log.info("账户ID:{},广告日报(最细粒度)数据请求成功", advertiserId);
             }