ck 4 年之前
父節點
當前提交
86a5e2dda3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      data_manage/public_analysis.py

+ 2 - 2
data_manage/public_analysis.py

@@ -188,8 +188,8 @@ def book_overview(start, end, book, type, page, page_size, order_by, order):
 
 
     sql = f"""
     sql = f"""
             select book,type,
             select book,type,
-                DATE_FORMAT(min(dt),'%Y/%m/%d') start_date,
-                DATE_FORMAT(max(dt),'%Y/%m/%d') end_date,
+                DATE_FORMAT(min(dt),'%Y%m%d') start_date,
+                DATE_FORMAT(max(dt),'%Y%m%d') end_date,
                 sum(cost) cost,
                 sum(cost) cost,
                 sum(reg_order_amount) amount,
                 sum(reg_order_amount) amount,
                 sum(first_order_amount) first_amount,
                 sum(first_order_amount) first_amount,