Browse Source

统计报表,同一天日期 数据报表显示时报

zhaoxian 2 years ago
parent
commit
604ac96c31

+ 1 - 1
ruixuan-live/src/main/java/com/ruixuan/report/service/impl/KuaishouLiveAccountReportServiceImpl.java

@@ -329,7 +329,7 @@ public class KuaishouLiveAccountReportServiceImpl implements IKuaishouLiveAccoun
         String filedAll = JsonResourceUtil.joinAllFiled(AccountReportConstants.getKuaishouAccountReport());
         map.put("filedAll", filedAll);
         List<JSONObject> list = null;
-        if ("hourly".equals(type)) {
+        if (startDate.equals(endDate)) {
             list = mapper.getAccountDataReportByHourly(map);
         } else {
             list = mapper.getAccountDataReportByDaily(map);