浏览代码

统计报表-销售报表 日报表换成application库的表

zhaoxian 11 月之前
父节点
当前提交
49bdd5407a

+ 2 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/KuaishouReportDailyAccountMapper.xml

@@ -985,9 +985,9 @@
         left join ctop_user_allocation b
         on a.account_id = b.account_id
         where
-        a.stat_date >= #{startDate}
+        a.stat_date >= date_format(#{startDate}, '%Y%m%d')
         and
-        a.stat_date <= #{endDate}
+        a.stat_date <= date_format(#{endDate}, '%Y%m%d')
         and
         b.project_id in
         <foreach collection="projectList" item="item" separator=","

+ 2 - 4
jeecg-boot-module-system/src/main/java/cn/com/ctop/toutiao/modules/report/mapper/xml/BytedanceAccountReportMapper.xml

@@ -523,10 +523,8 @@
         application.bytedance_advertiser_report_daily_dw a
         left join ctop_user_allocation b on a.advertiser_id = b.account_id
         left join ctop_project c on b.project_id = c.id
-        where
-        date_format(a.stat_datetime, '%Y-%m-%d') &gt;= #{startDate}
-        and
-        date_format(a.stat_datetime, '%Y-%m-%d') &lt;= #{endDate}
+        where a.stat_datetime &gt;= date_format(#{startDate}, '%Y%m%d')
+        and a.stat_datetime &lt;= date_format(#{endDate}, '%Y%m%d')
         and
         b.project_id in
         <foreach collection="projectList" item="item" separator=","