Przeglądaj źródła

add data cache on 2020.6.10

jiequan.bi 5 lat temu
rodzic
commit
19a789da00

+ 3 - 0
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/service/impl/BytedanceAccountReportServiceImpl.java

@@ -39,6 +39,9 @@ public class BytedanceAccountReportServiceImpl implements IBytedanceAccountRepor
                 return result;
             }
             before = bytedanceAccountReportMapper.queryTodaySumByHour(DateUtils.getAnotherDay(SystemDateConstant.yyyy_MM_dd, startDate, -1), after.getInteger("maxHour"), accounts);
+            if(before==null){
+                return result;
+            }
         } else {
             after = bytedanceAccountReportMapper.querySumByStartEndDate(endDate, startDate, accounts);
             if(after==null){