Przeglądaj źródła

Merge remote-tracking branch 'origin/master'

syh 5 lat temu
rodzic
commit
1f102c82f5

+ 2 - 2
module-report/src/main/java/cn/com/ctop/bytedance/mapper/xml/BytedanceReportMapper.xml

@@ -34,7 +34,7 @@
        sum(photo_click) photoClick,
        sum(aclick) aclick
      from
-      ctop_kuaishou_report_hourly_account
+      ctop_kuaishou_report_daily_account
     </select>
 
 
@@ -50,7 +50,7 @@
       ctop_kuaishou_report_hourly_account
       where stat_date = #{date}
       group by stat_hour
-      order by stat_hour desc
+      order by stat_hour asc
     </select>
 
 

+ 0 - 12
module-report/src/main/java/cn/com/ctop/bytedance/service/impl/BytedanceReportServiceImpl.java

@@ -17,7 +17,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
-import java.text.ParseException;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -339,8 +338,6 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
         } catch (Exception e) {
             e.printStackTrace();
         }
-
-        System.err.println(accountJson);
         return accountJson;
     }
 
@@ -538,8 +535,6 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
             e.printStackTrace();
 
         }
-
-        System.err.println(detail);
         return detail;
     }
 
@@ -632,14 +627,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
             e.printStackTrace();
         }
 
-        System.err.println(reportList);
         return reportList;
     }
 
-    public static void main(String[] args) throws ParseException {
-        String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
-        String anotherDay = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
-        String endDate = DateUtils.getMonthBefore("yyyy-MM-dd", anotherDay, -3);
-        System.err.println(endDate);
-    }
 }