Commit 533e9aa8 by danmo

修改月统计数据

1 parent a4c1ab84
......@@ -150,11 +150,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sum(ifnull(wgs.msg_total, 0)) msg_total,
date_format(wgs.stat_time, '%Y-%m') as finish_date
from we_group_statistic wgs
/*where
str_to_date(date_format(wgs.stat_time, '%Y-%m'), '%Y-%m') >=
str_to_date(date_format(date_sub(current_date, interval #{few} month), '%Y-%m'), '%Y-%m')
and str_to_date(date_format(wgs.stat_time, '%Y-%m'), '%Y-%m') <=
str_to_date(date_format(current_date, '%Y-%m'), '%Y-%m')*/
group by finish_date
order by finish_date
) as tbr on tbl._date = tbr.finish_date
......
......@@ -149,11 +149,6 @@
sum(ifnull(wubd.negative_feedback_cnt, 0)) negative_feedback_cnt,
date_format(wubd.stat_time, '%Y-%m') as finish_date
from we_user_behavior_data wubd
/*where
str_to_date(date_format(wubd.stat_time, '%Y-%m'), '%Y-%m') >=
str_to_date(date_format(date_sub(current_date, interval #{few} month), '%Y-%m'), '%Y-%m')
and str_to_date(date_format(wubd.stat_time, '%Y-%m'), '%Y-%m') <=
str_to_date(date_format(current_date, '%Y-%m'), '%Y-%m')*/
group by finish_date
order by finish_date
) as tbr on tbl._date = tbr.finish_date
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!